Collapsible
A section that shows and hides its panel.
3 unpaid invoices
INV-1042 · Acme Inc.
When to use
- Use when
- One section of secondary detail that people can reveal.
- Avoid when
- There are several sections that behave as a set; use Accordion.
Installation
The source lands in src/components/ui/collapsible.tsx, along with any Shelf items it builds on, and .shelf/lock.json records what was installed. It's yours to edit.
Usage
Built on
- Packages
@base-ui/react,@stylexjs/stylex- Shelf items
foundations,utils- Accessibility
- Focus, keyboard, and ARIA behavior come from Base UI.
- Figma
- In progress. See Designers and Figma.