Skip to content
caliper ui pro docs

Site header

A top navigation bar with logo, links and actions.

Pro
Skip to content

Customer story · Ostra Freight

Closing September in two days, not nine

Ostra moved 4,210 monthly bank lines onto Halden in a week, and closed September in two days.

Sailboats in a harbour at dusk

Ostra moved 4,210 monthly bank lines onto Halden in a week. Matching now runs overnight, and the finance team spends the first morning of the close on exceptions only.

When to use

  • The top of a public website.

When not to use

  • An application with a sidebar.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/site-header

Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

SiteHeader

7 props
PropTypeDefaultDescription
brand *ReactNode—
links *readonly SiteLink[]—
actionsReactNode—Sign in, a primary button, a theme switch.
skipTostring"#main"Adds a first-focus "Skip to content" link. Pass an empty string to omit it.
stickybooleantrue
scrollRootRefObject<HTMLElement | null>—An element that scrolls instead of the window, to show the border when it is scrolled.
classNamestring—

Keyboard

Escape
Closes or cancels, then returns focus to where it came from.

Accessibility

It is built on native elements and keeps aria-label, aria-hidden, aria-current, aria-expanded and aria-controls in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/site-header.md

The index of every part is at /llms.txt.

More in Page chrome