Masthead

A masthead contains and organizes global properties like a logo, navigation, and settings for easy and consistent access across all pages of an application.

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

Basic

Content

Basic with mixed content

Content

Display inline

Content

Display stack

Content

Display stack, display inline responsive

Content

Inset

Content

Props

Masthead

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside of the masthead
classNamestringAdditional 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

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside of the masthead toggle.
classNamestringAdditional classes added to the masthead toggle.

MastheadMain

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside of the masthead main block.
classNamestringAdditional classes added to the masthead main.

MastheadBrand

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside of the masthead brand.
classNamestringAdditional classes added to the masthead brand.
*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside of the masthead logo.
classNamestringAdditional classes added to the masthead logo.
componentReact.ElementType<any> | React.ComponentType<any>Component type of the masthead logo.

MastheadContent

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside of the masthead content block.
classNamestringAdditional classes added to the masthead content.

CSS variables

Expand or collapse columnSelectorVariableValue
We use cookies on our websites to deliver our online services. Details about how we use cookies and how you may disable them are set out in our Privacy Statement. By using this website you agree to our use of cookies.