Skip to content

Commit 8ac7cb6

Browse files
committed
fix(tabs): change tab title prop-types to allow jsx content
1 parent 57bcdb8 commit 8ac7cb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tabs/TabHeader.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ export function TabHeader({ index, isActive, title, onSelect }) {
2525
TabHeader.propTypes = {
2626
index: PropTypes.number,
2727
isActive: PropTypes.bool,
28-
title: PropTypes.string,
28+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
2929
onSelect: PropTypes.func,
3030
};

0 commit comments

Comments
 (0)