Page header
A project page header that folds into a compact bar as you scroll, with tabs whose counts roll.
A complete keyboard driven action surface with search, grouped results, and shortcuts.
npx shadcn@latest add @silicon-ui/command-palettenpx shadcn@latest add @silicon-ui/command-paletteInstall the dependencies.
npm install lucide-react motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/command-palette/command-palette.tsxcomponents/silicon-ui/command-palette/command-palette.module.cssInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
| Prop | Type | Default |
|---|---|---|
items* | CommandItem[] | — |
placeholder | string | "Search commands" |
onSelect | (item: CommandItem) => void | — |
onClose | () => void | — |
label | string | "Command palette" |
autoFocus | boolean | false |