Components•Collapsible
Components•Collapsible
Collapsible
A disclosure wrapper for revealing optional details inside the current surface.
Dependencies
Copy below cli
npx shadcn add @bjork-ui/primitive-collapsibleHow to use
import { BjorkCollapsible, BjorkCollapsibleTrigger, BjorkCollapsibleContent } from "@/components/isaiahbjork/primitives";Props
classNamestringPass through styling hooks for the Collapsible primitive without replacing the base Bjork surface.
childrenReactNodeComposable content, labels, icons, and nested content where the primitive supports them.
openbooleanControls whether the attached content region is expanded or collapsed.
Sync interval, quiet mode, and retention windows are available.
Inline reveal
Use for detail rows and optional settings that should remain in the same visual block.
<BjorkCollapsible> <BjorkCollapsibleTrigger asChild> <BjorkButton>Advanced settings</BjorkButton> </BjorkCollapsibleTrigger> <BjorkCollapsibleContent>Details</BjorkCollapsibleContent></BjorkCollapsible>