Accordion

Accordion is a neobrutalist React component from Cruise UI. Sections that open and close, one or several at a time: FAQs, details, settings. Install it with npx shadcn@latest add @cruiseui/accordion.

Install

Terminal

npx shadcn@latest add @cruiseui/accordion

First time? Installation shows the one-off components.json setup (the @cruiseui registry) and how to turn the theme on.

Example

Corners

Same day in Lagos for orders before 12 noon; 2–3 days elsewhere.

When to use it

When to use

Long pages of questions or details where people look for one answer (FAQ).

When not to

Content everyone needs to read (just show it). Switching views (use Tabs).

Props

CruiseAccordion

PropTypeDefaultDescription
itemsCruiseAccordionItem[]——
multiple?booleanfalseLet several panels be open at once.
defaultValue?string[]—Values of the panels open at first.
className?string——

Accessibility

  • Each header is a real button with aria-expanded and aria-controls.
  • Enter and Space toggle; the open state shows as − / +, not colour alone.
  • No height animation under reduced motion.