Skip to content
TrademarkTrademark
Docs
Components

Accordion

Updated: June 30, 2026
View on GitHub

A collapsible container that allows users to expand and collapse sections of content, helping to organize information in a compact way. It's useful for FAQs, navigation menus, and any content that benefits from progressive disclosure.

Title style

The title is set in heading-strong-s by default. titleVariant takes any text variant, for a FAQ that reads as body copy; radius="none" squares the header for a flush layout.

API reference

Type
Default
titlerequired
React.ReactNode—
children
React.ReactNode—
icon
IconNamechevronDown
iconRotation
number180
size
lms
m
radius
Corner radius of the header; none for square corners.
xllmsxsnonefull
m
titleVariant
Text style of the title.
TextVariantheading-strong-s
open
booleanfalse
onToggle
() => void—
className
string—
style
React.CSSProperties—
headerProps
Props forwarded to the header row.
React.ComponentProps<typeof Row>—
contentProps
Props forwarded to the content column.
React.ComponentProps<typeof Column>—
toggleOnHeaderClick
Whether clicking anywhere in the header toggles the panel.
booleantrue
…and every FlexProps propinherited—

Interaction

The accordion title area shows a pointer cursor, indicating it's clickable for expand/collapse.

Methods

The Accordion component exposes the following methods through a ref:

Method
Description
toggle()Toggles the accordion between open and closed states
open()Opens the accordion, making its content visible
close()Closes the accordion, hiding its content
Edit this page on GitHub