HeaderReady
The header is a block of designated space for labelling the currently viewed context as well as providing primary actions.
<nord-header>
<h1 class="n-typescale-l">Dashboard</h1>
<nord-button-group slot="end" variant="spaced">
<nord-button>Export</nord-button>
<nord-button variant="primary">
<nord-icon slot="start" name="interface-add-small"></nord-icon>
Create new
</nord-button>
</nord-button-group>
</nord-header>
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
size | size | Controls the size of the header component. | "m" | "s" | "m" |
Slots
Slot name | Description |
---|---|
Default slot | The header content. |
end | Optional slot for buttons, toggles, etc. |
Usage
This section includes guidelines for designers and developers about the usage of this component in different contexts.
Do
- Use the header component to show a heading to describe the current view.
- Use the header component to hold primary actions.
- Use the header component at a visual high position at full width.
- Utilise the
n-truncate
CSS helper to prevent long headings from wrapping.
Don’t
- Don’t overcrowd the header component with too many actions or information.
- Don’t nest the header component too deeply and restrict its available space.
- Don’t add large amounts of content or long headings. Aim for headings that are short and concise.
Content guidelines
The header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.
Integration
For integration guidelines, please see Web Components documentation. This documentation explains how to implement and use Nord Web Components across different technologies such as Vue.js, React, or Vanilla JavaScript.
Troubleshooting
If you experience any issues while using Nord Web Components, please head over to the Support page for more guidelines and ways to contact us.