Site header
A marketing site's header, as a bar that stays, a floating island or one that steps aside as you read. On a phone the menus open in a sheet.
Preview
The logo, the menus and the actions in one bar that stays at the top. A surface fades in under it once the page scrolls, so it reads over what passes beneath. Scroll the page to see it, or narrow the window to open the menus in a sheet.
Examples
Island
Once the page scrolls, the parts draw in together and a floating bar forms around them, held off the top. It is a block of its own, site-header-island.
Headroom
Slides away as the page scrolls down, and comes back as soon as it scrolls up. It is a block of its own, site-header-headroom.
Installation
Site header
npx shadcn@latest add https://kinoui.com/r/site-header.json- Files
lib/refs.tslib/reduce-motion.tslib/resize.tslib/swap.tsxcomponents/kino/badge.tsxcomponents/kino/icon-tile.tsxcomponents/kino/spinner.tsxcomponents/kino/button.tsxlib/scroll.tslib/popup.tslib/glide.tsxlib/keys.tsxcomponents/kino/kbd.tsxcomponents/kino/tooltip.tsxlib/cut.tsxlib/hero-parts.tsxlib/run-progress.tslib/highlight.tscomponents/kino/navigation-menu.tsxlib/controllable.tslib/grip.tslib/panel.tsxlib/motion-tokens.tslib/motion-speed.tsxlib/sheet-physics.tsxcomponents/kino/drawer.tsxlib/site-header-parts.tsxlib/placeholder.tscomponents/kino/skeleton.tsxcomponents/kino/site-header/site-header.tsx- Packages
@ui-sdk/core@ui-sdk/reactclass-variance-authority- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
Site header island
npx shadcn@latest add https://kinoui.com/r/site-header-island.json- Files
lib/refs.tslib/reduce-motion.tslib/resize.tslib/swap.tsxcomponents/kino/badge.tsxcomponents/kino/icon-tile.tsxcomponents/kino/spinner.tsxcomponents/kino/button.tsxlib/scroll.tslib/popup.tslib/glide.tsxlib/keys.tsxcomponents/kino/kbd.tsxcomponents/kino/tooltip.tsxlib/cut.tsxlib/hero-parts.tsxlib/run-progress.tslib/highlight.tscomponents/kino/navigation-menu.tsxlib/controllable.tslib/grip.tslib/panel.tsxlib/motion-tokens.tslib/motion-speed.tsxlib/sheet-physics.tsxcomponents/kino/drawer.tsxlib/site-header-parts.tsxlib/placeholder.tscomponents/kino/skeleton.tsxcomponents/kino/site-header-island/site-header-island.tsx- Packages
@ui-sdk/core@ui-sdk/reactclass-variance-authority- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
Site header headroom
npx shadcn@latest add https://kinoui.com/r/site-header-headroom.json- Files
lib/refs.tslib/reduce-motion.tslib/resize.tslib/swap.tsxcomponents/kino/badge.tsxcomponents/kino/icon-tile.tsxcomponents/kino/spinner.tsxcomponents/kino/button.tsxlib/scroll.tslib/popup.tslib/glide.tsxlib/keys.tsxcomponents/kino/kbd.tsxcomponents/kino/tooltip.tsxlib/cut.tsxlib/hero-parts.tsxlib/run-progress.tslib/highlight.tscomponents/kino/navigation-menu.tsxlib/controllable.tslib/grip.tslib/panel.tsxlib/motion-tokens.tslib/motion-speed.tsxlib/sheet-physics.tsxcomponents/kino/drawer.tsxlib/site-header-parts.tsxlib/placeholder.tscomponents/kino/skeleton.tsxcomponents/kino/site-header-headroom/site-header-headroom.tsx- Packages
@ui-sdk/core@ui-sdk/reactclass-variance-authority- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
SiteHeader
The Bar arrangement: a <header> that stays at the top, with a surface that fades in once the page scrolls. Other props go to the <header>.
SiteHeaderIsland
The Island arrangement: once the page scrolls, its parts draw in and a floating bar forms around them. It takes the same props as SiteHeader; other props go to the <header>.
SiteHeaderHeadroom
The Headroom arrangement: it slides away as the page scrolls down and back as it scrolls up. It takes the same props as SiteHeader; other props go to the <header>.
CSS variables
Accessibility
- The menus are a navigation landmark named by
label, with the Navigation menu’s keyboard: arrows move between menus, Enter or Space opens a panel, and Escape closes it. - A panel’s links are in the page from the start, hidden, so search engines and the browser’s find reach them.
- The page the visitor is on is marked with
aria-current, for screen readers as well as by its look. - On a phone the menu button opens a sheet, a dialog that holds focus. A section is a screen of its own: focus moves to Back as it opens, and back to its row as it closes.
- A header that hides comes back as soon as focus moves into it by keyboard, and never hides while a menu is open.
- Under reduced motion nothing slides: the surface, the bar and the sheet’s screens fade in place.
For agents
What an agent reads on this example with snapshot(), and the actions it can call with act().
Once open
The Agent bridge page sets up snapshot() and act() in your app.
