Basic Collapsible
Accessibility tip (web)
In order to ensure Collapsible components are accessible on the web, we need to set up the trigger and Collapsible to reference each other correctly. The useA11yControlledVisibility
is ideal for this, but you can also wire up each aria-*
attr manually following the aria-expanded spec.
Loading...
Expand Top
Place Collapsible
above the trigger to expand top.
Loading...
Scroll Content
Enable scroll by setting maxHeight
.
Loading...
Horizontal (Experimental)
Set direction="horizontal"
for horizontal expand/collapse.
Loading...