Getting Started
Foundations
Components
Search for a command to run...
Accordions help organize content into scannable, collapsible sections that users can expand to view more details. They're particularly useful for FAQs, settings panels, and any interface where showing all content at once would be overwhelming. Accordions support both single-panel and multi-panel expansion modes, allowing designers to control whether multiple sections can be open simultaneously or if opening one section should close others.
Use accordions to progressively disclose information and reduce cognitive load by hiding secondary content until users need it. Each accordion item should have a clear, descriptive header that gives users enough information to decide whether to expand it. Accordions should be used sparingly on mobile devices where space is limited, as excessive nesting can make content harder to access.
import { Accordion } from "@strongtie/design-system/accordion"This module exports the following components:
AccordionAccordionItemAccordionTriggerAccordionContentAll components accept standard HTML attributes and React props.
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
CSS classes used by this component:
accordionaccordion-contentaccordion-itemaccordion-triggerEnsure proper accessibility attributes are added when implementing this component.