Site Header
Present the site brand and primary navigation. Use it at the top of public pages with mobile navigation for narrower screens.
Examples
Attributes, methods and events
Native custom element: configure HTML attributes rather than React props. Boolean attributes use presence / absence. Registration is browser-only; server imports do not require a DOM and may export an undefined constructor.
| Attribute |
|---|
role |
sticky |
variant |
Public methods: none declared by this entry.
Emitted custom events: none declared by this entry.
Setup
bun add @kongmy-dev/sapphire-uiFor an app using package components throughout, load the full stylesheet once. Add this element registration where you use it.
import "@kongmy-dev/sapphire-ui/sapphire.css";
import "@kongmy-dev/sapphire-ui/elements/site-header";Mixing package and vendored components? Follow application setup.