Skip to content
Dumb UI

Search Dumb UI

Jump to a page or component, or switch the style

Search Dumb UI

Jump to a page or component, or switch the style

Accordion

Stacked sections that expand in place. Heavy rules in Raw, soft floating cards in Silk, raised blocks in Volume.

NavigationRadix Accordion

No. A style is a token set. The same props and markup render as Raw, Silk or Volume.

$ pnpm dlx shadcn@latest add @dumb/accordion

Needs the @dumb registry in components.json and the style tokens. See Installation.

import {
  Accordion,
  AccordionContent,
  AccordionItem,
  AccordionTrigger,
} from "@/components/ui/accordion"
<Accordion type="single" collapsible>
  <AccordionItem value="refunds">
    <AccordionTrigger>Do you offer refunds?</AccordionTrigger>
    <AccordionContent>Within 30 days.</AccordionContent>
  </AccordionItem>
</Accordion>
SpaceEnter
Expands or collapses the focused section.
ArrowUpArrowDown
Moves between triggers.