Page bar
The bar at the top of a page: a link to its parent, the title and the page's actions, pinned as it scrolls.
npx shadcn@latest add @silicon-ui/page-barInstallation
With the shadcn CLI
npx shadcn@latest add @silicon-ui/page-barManually
Copy these files into your project
- components/silicon-ui/page-bar/page-bar.tsx
- components/silicon-ui/page-bar/page-bar.module.css
Add the foundation, once per app, for the design and motion tokens
npx shadcn@latest add @silicon-ui/silicon-foundation
Usage
API reference
| Prop | Type | Default |
|---|---|---|
title*The page's title, its h1. | ReactNode | — |
parentA link back up, on nested pages: a crumb above the title. A page in the sidebar has none, so the bar is one line shorter. | { label: string; href: string } | — |
titleIdThe h1's id, for a region or dialog that is named by the title. | string | — |
actionsThe page's supporting buttons, at the title's end. | ReactNode | — |
classNamePlacement only. | string | — |
Dependencies
- npm
- None
- Registry
- silicon-motion-tokensbreadcrumb