Collapsible
UI SDK Collapsible: disclosure with aria-expanded, animated height, controller support and a rotating chevron icon.
Example
- Review the agent approval flow
- Benchmark table rendering
collapsible-demo.tsxCopy code
Installation
Copy code
npm packages
lucide-reactUsage
ImportCopy code
API reference
Collapsible
CollapsibleTrigger
CollapsibleIcon
Takes ChevronDownIcon.
CollapsiblePanel
Other exports
createCollapsibleControllerAccessibility
- A disclosure with aria-expanded on its trigger.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.