File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export interface PageHeaderLinkProps extends ButtonProps {
2222 isExternal ?: boolean ;
2323}
2424
25- export interface ContentHeaderProps {
25+ export interface ContentHeaderProps extends React . PropsWithChildren {
2626 /** Title for content header */
2727 title : string ;
2828 /** Subtitle for content header */
@@ -39,6 +39,8 @@ export interface ContentHeaderProps {
3939 actionMenu ?: React . ReactNode ;
4040 /** Custom OUIA ID */
4141 ouiaId ?: string | number ;
42+ /** Child nodes */
43+ children ?: React . ReactNode ;
4244}
4345
4446const useStyles = createUseStyles ( {
@@ -55,6 +57,7 @@ export const ContentHeader: React.FunctionComponent<React.PropsWithChildren<Cont
5557 label,
5658 breadcrumbs = null ,
5759 actionMenu,
60+ children = null ,
5861 ouiaId = 'ContentHeader' ,
5962} : ContentHeaderProps ) => {
6063 const classes = useStyles ( ) ;
@@ -110,6 +113,7 @@ export const ContentHeader: React.FunctionComponent<React.PropsWithChildren<Cont
110113 </ TextContent >
111114 </ FlexItem >
112115 </ Flex >
116+ { children }
113117 </ PageSection >
114118 ) } ;
115119
You can’t perform that action at this time.
0 commit comments