To maintain proper layout and formatting, a <Masthead>
should contain both a <MastheadMain>
and <MastheadContent>
component.
Mastheads contain the <MastheadMain>
that wraps a <PageToggleButton>
and <MastheadBrand>
. The <MastheadBrand>
wraps <MastheadLogo>
. The masthead also contains the page's header toolbar within <MastheadContent>
.
Examples
Props
Masthead
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside of the masthead | |
className | string | Additional classes added to the masthead | |
display | { default?: 'inline' | 'stack'; sm?: 'inline' | 'stack'; md?: 'inline' | 'stack'; lg?: 'inline' | 'stack'; xl?: 'inline' | 'stack'; '2xl'?: 'inline' | 'stack'; } | { md: 'inline' } | Display type at various breakpoints |
inset | { default?: 'insetNone' | 'insetXs' | 'insetSm' | 'insetMd' | 'insetLg' | 'insetXl' | 'inset2xl' | 'inset3xl'; sm?: 'insetNone' | 'insetXs' | 'insetSm' | 'insetMd' | 'insetLg' | 'insetXl' | 'inset2xl' | 'inset3xl'; md?: 'insetNone' | 'insetXs' | 'insetSm' | 'insetMd' | 'insetLg' | 'insetXl' | 'inset2xl' | 'inset3xl'; lg?: 'insetNone' | 'insetXs' | 'insetSm' | 'insetMd' | 'insetLg' | 'insetXl' | 'inset2xl' | 'inset3xl'; xl?: 'insetNone' | 'insetXs' | 'insetSm' | 'insetMd' | 'insetLg' | 'insetXl' | 'inset2xl' | 'inset3xl'; '2xl'?: 'insetNone' | 'insetXs' | 'insetSm' | 'insetMd' | 'insetLg' | 'insetXl' | 'inset2xl' | 'inset3xl'; } | Insets at various breakpoints |
MastheadToggle
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside of the masthead toggle. | |
className | string | Additional classes added to the masthead toggle. |
MastheadMain
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside of the masthead main block. | |
className | string | Additional classes added to the masthead main. |
MastheadBrand
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside of the masthead brand. | |
className | string | Additional classes added to the masthead brand. |
MastheadLogo
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside of the masthead logo. | |
className | string | Additional classes added to the masthead logo. | |
component | React.ElementType<any> | React.ComponentType<any> | Component type of the masthead logo. |
MastheadContent
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside of the masthead content block. | |
className | string | Additional classes added to the masthead content. |
CSS variables
Expand or collapse column | Selector | Variable | Value |
---|