Scroll area
A native scroll container with thin overlay scrollbars and edge fades that appear only when content overflows.
Progressively reveal supporting information in place.
npx shadcn@latest add @silicon-ui/accordionnpx shadcn@latest add @silicon-ui/accordionInstall the dependencies.
npm install @radix-ui/react-accordion lucide-react motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/accordion/accordion.tsxcomponents/silicon-ui/accordion/accordion.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* | AccordionItem[] | — |
defaultOpen | number | 0 |
size"lg" suits page-level FAQs: questions at the large text size, answers at body size. | "md" | "lg" | "md" |