Getting Started
Foundations
Components
Search for a command to run...
Accordions allow users to view a summary or condensed version of content and then expand it to reveal detailed information. They are typically used when screen real estate is limited and there's a need to manage the visibility of large amounts of content, presenting information in a structured, efficient way that allows users to access details on demand.
Built on top of Radix UI's Accordion primitive with full keyboard navigation and accessibility support.
import { Accordion } from "@strongtie/design-system/accordion"This module exports the following components:
AccordionAccordionItemAccordionTriggerAccordionContentAll components extend Radix UI primitives. See the Radix UI documentation for all available props.
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
The following data attributes are used to identify component parts:
accordionaccordion-contentaccordion-itemaccordion-triggerOther CSS classes used by this component:
accordion-contentaccordion-content-inneraccordion-headeraccordion-iconaccordion-itemaccordion-triggerThis component inherits accessibility features from Radix UI, including: