2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search 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.
Prop
Type
Default
titlerequired
React.ReactNode
children
React.ReactNode
icon
IconNamechevronDown
iconRotation
number180
size
lms
m
radius
xssmlxlfull
m
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
The accordion title area shows a pointer cursor, indicating it's clickable for expand/collapse. 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
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club