Skip to content

Commit

Permalink
Nested components (#917)
Browse files Browse the repository at this point in the history
* Allow components to be passed to NavbarSimple.brand and DropdownMenu.label

* Allow components to be passed to Toast.header
  • Loading branch information
tcbegley authored Dec 28, 2022
1 parent 10a3dc4 commit 2bd7064
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/dropdownmenu/DropdownMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ DropdownMenu.propTypes = {
/**
* Label for the DropdownMenu toggle.
*/
label: PropTypes.string,
label: PropTypes.node,

/**
* Direction in which to expand the DropdownMenu. Default: 'down'. `left`
Expand Down
2 changes: 1 addition & 1 deletion src/components/nav/NavbarSimple.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ NavbarSimple.propTypes = {
/**
* Brand text, to go top left of the navbar.
*/
brand: PropTypes.string,
brand: PropTypes.node,

/**
* Link to attach to brand.
Expand Down
2 changes: 1 addition & 1 deletion src/components/toast/Toast.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Toast.propTypes = {
/**
* Text to populate the header with
*/
header: PropTypes.string,
header: PropTypes.node,

/**
* Set to True to add a dismiss button to the header which will close the
Expand Down

0 comments on commit 2bd7064

Please # to comment.