Page header
A project page header that folds into a compact bar as you scroll, with tabs whose counts roll.
npx shadcn@latest add @silicon-ui/page-headerInstallation
With the shadcn CLI
npx shadcn@latest add @silicon-ui/page-headerManually
Install the dependencies
npm install @radix-ui/react-dropdown-menu @radix-ui/react-tabs lucide-react motionCopy these files into your project
- components/silicon-ui/blocks/page-header/page-header.tsx
- components/silicon-ui/blocks/page-header/page-header.module.css
Shared with other components. Skip any you already have.
- components/silicon-ui/progress/progress.tsx
- components/silicon-ui/progress/progress.module.css
- components/silicon-ui/button/button.tsx
- components/silicon-ui/button/button.module.css
- components/silicon-ui/badge/badge.tsx
- components/silicon-ui/badge/badge.module.css
- components/silicon-ui/avatar-group/avatar-group.tsx
- components/silicon-ui/avatar-group/avatar-group.module.css
- components/silicon-ui/avatar/avatar.tsx
- components/silicon-ui/avatar/avatar.module.css
- components/silicon-ui/lib/silicon-provider.tsx
- components/silicon-ui/animated-counter/animated-counter.tsx
- components/silicon-ui/animated-counter/animated-counter.module.css
Add the foundation, once per app, for the design and motion tokens
npx shadcn@latest add @silicon-ui/silicon-foundation