Skip to content

Commit

Permalink
fix(tag types): accept ReactNodes as children
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Jul 15, 2024
1 parent bc59cf7 commit c093a14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/tag/src/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Tag.defaultProps = {
Tag.propTypes = {
/** Use bold tags where it is important that the tag is seen by the user in an information dense interface. Bold tags should be reserved for edge cases and not overused. */
bold: PropTypes.bool,
children: PropTypes.string,
children: PropTypes.node,
className: PropTypes.string,
dataTest: PropTypes.string,
/** Tags can contain icons. Use icons where they will help users easily identify the content of the tag. Tags must have a text label and cannot display only an icon. */
Expand Down
2 changes: 1 addition & 1 deletion components/tag/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface TagProps {
* Use bold tags where it is important that the tag is seen by the user in an information dense interface. Bold tags should be reserved for edge cases and not overused.
*/
bold?: boolean
children?: string
children?: React.ReactNode
className?: string
dataTest?: string
/**
Expand Down

0 comments on commit c093a14

Please sign in to comment.