Collapsible
Usage
Import
import { Collapsible } from "@qeetrix/ui";It can also be imported on its own from @qeetrix/ui/components/collapsible.
Controlled and uncontrolled
Pass the value prop to control it, or the default prop to let the component own it.
| Value | Default | Change |
|---|---|---|
open | defaultOpen | onOpenChange |
States
open
Support
| Feature | Status |
|---|---|
| Right-to-left | Not applicable |
| Dark mode | Not applicable |
| Density | Not applicable |
| Server rendering | Client component |
| Reduced motion | Supported |
Accessibility
Follows the WAI-ARIA disclosure pattern. Not yet audited.
Keyboard
Tab Enter SpaceFocus
Each control is a Tab stop, in order.
Tests
Covered by unit, accessibility (axe), interaction and visual tests.