HeaderCrate
Notes
HeaderCrate
is a panel that contains contextual information like navigation,
breadcrumbs, and supplementary content. On small screens, it is rendered as a header before
other page content. On wide screens, it is a persistent panel anchored to the left half of
the screen.
HeaderCrate
includes a subcomponent, HeaderCrate.Inner
, which is used to wrap the main
content of the crate. The Inner
content is vertically centered with generous padding, to
call attention to its content. Other content like headers and footers for the crate should
typically be added outside of Inner
.
HeaderCrate
extends Component so that it may accept a ref from consuming components.
Props
- className
string
- hasGlobalNav
bool
If true, adjusts the padding of content to align with global nav elements
- hasNavBar
bool
If true, adjusts the position of the HeaderCrate to allow the NavBar to be positioned visually within the HeaderCrate