Accordion
The Accordion component groups related content into expandable sections.
Examples
(5)Properties
(36)Playground
Single Expansion
Allow only one item to open at a time by setting
type="single" and passing an items array.Multiple Expansion
Control the
expanded keys to keep several accordion items open at the same time.Visual Variants
Switch between
default, separated, and bordered variants to adjust emphasis.Accent Colors
Accent each expanded panel with a theme palette —
primary, secondary, tertiary, success, warning, error, or gray. Set color on the accordion for a uniform accent, or per item to mix accents in a single accordion. Collapsed items stay neutral so only the open panel is highlighted.Title customization
titleProps accepts any <Text> props (ff, weight, tracking, uppercase, size, color, style) and applies them to every item header in the accordion. The existing headerTextStyle escape hatch still works and can be combined.Scan to open this page on your phonereact-ui-library.com/components/Accordion
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources