Skip to content

Commit 2bd7064

Browse files
authored
Nested components (#917)
* Allow components to be passed to NavbarSimple.brand and DropdownMenu.label * Allow components to be passed to Toast.header
1 parent 10a3dc4 commit 2bd7064

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/dropdownmenu/DropdownMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ DropdownMenu.propTypes = {
151151
/**
152152
* Label for the DropdownMenu toggle.
153153
*/
154-
label: PropTypes.string,
154+
label: PropTypes.node,
155155

156156
/**
157157
* Direction in which to expand the DropdownMenu. Default: 'down'. `left`

src/components/nav/NavbarSimple.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ NavbarSimple.propTypes = {
116116
/**
117117
* Brand text, to go top left of the navbar.
118118
*/
119-
brand: PropTypes.string,
119+
brand: PropTypes.node,
120120

121121
/**
122122
* Link to attach to brand.

src/components/toast/Toast.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Toast.propTypes = {
206206
/**
207207
* Text to populate the header with
208208
*/
209-
header: PropTypes.string,
209+
header: PropTypes.node,
210210

211211
/**
212212
* Set to True to add a dismiss button to the header which will close the

0 commit comments

Comments
 (0)