Header
Component is used to display a header at the top of the page.
Props
Prop | Type | Default |
---|---|---|
structure | spread | row | column | spread |
position | relative | sticky | fixed | absolute | relative |
frame | fill | panel | fill |
size | sm | md | lg | - |
compact | attribute | true |
align | start | center | end | center |
variant | ghost | subtle | soft | surface | outline | subtle |
theme | string | - |
as | HTMLTag | header |
HTML Attributes | Polymorphic<as> | - |
Examples
frame
size
The size prop cascades: it is inherited from the parent and it is applied to all children.
variant
Sets the color variant used for this component and all its children.
structure
Applies all styles & props of the chosen Structure
component to this component.
spread
Structures children in a row with space between them and wrapping.
row
Structures children in a horizontal row.
column
Structures children in a vertical stack and sets dynamic margins between them.
For example, the margin between a heading and a paragraph is smaller than the margin between a paragraph an image.