Components•Accordion
Components•Accordion
Accordion
A stacked disclosure control for expanding one section of supporting content without leaving the page.
Dependencies
Copy below cli
npx shadcn add @bjork-ui/primitive-accordionHow to use
import { BjorkAccordion, BjorkAccordionItem, BjorkAccordionTrigger, BjorkAccordionContent } from "@/components/isaiahbjork/primitives";Props
classNamestringPass through styling hooks for the Accordion primitive without replacing the base Bjork surface.
childrenReactNodeComposable content, labels, icons, and nested content where the primitive supports them.
type / valuesingle | multipleControls whether one or many sections can be open, with optional controlled or default open values.
Keep the content inside a single compact surface with no nested cards.
Disclosure stack
Use for grouped content that should stay inside one continuous surface.
<BjorkAccordion type="single" collapsible> <BjorkAccordionItem value="surface"> <BjorkAccordionTrigger>Surface rules</BjorkAccordionTrigger> <BjorkAccordionContent>Keep content inside one continuous card.</BjorkAccordionContent> </BjorkAccordionItem> <BjorkAccordionItem value="motion"> <BjorkAccordionTrigger>Motion rules</BjorkAccordionTrigger> <BjorkAccordionContent>Opened content uses a quick blur reveal.</BjorkAccordionContent> </BjorkAccordionItem></BjorkAccordion>