Skip to content

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-header

Installation

With the shadcn CLI

npx shadcn@latest add @silicon-ui/page-header

Manually

  1. Install the dependencies

    npm install @radix-ui/react-dropdown-menu @radix-ui/react-tabs lucide-react motion
  2. Copy 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
  3. Add the foundation, once per app, for the design and motion tokens

    npx shadcn@latest add @silicon-ui/silicon-foundation

Usage

usage.tsx
import { PageHeader } from "@/components/silicon-ui/blocks/page-header/page-header";

Dependencies

npm
@radix-ui/react-dropdown-menu@radix-ui/react-tabslucide-reactmotion
Registry
silicon-motion-tokensanimated-counteravataravatar-groupbadgebuttonprogress