Collapsible
A fully accessible, token-driven Collapsible component built with strict WAI-ARIA compliance.
tsx
import { Collapsible } from '@nofinite/nui';Interactive Preview
Loading preview...
Usage
Basic Example
tsx
import { Collapsible } from '@nofinite/nui';
<Collapsible />API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
defaultOpen | boolean | false | — |
isOpen | boolean | — | — |
onToggle | ((isOpen: boolean) => void) | — | — |
Accessibility & Guidelines
- Semantic Tokens: Built strictly using Nuicss semantic tokens (
bg-surface,text-default,border-subtle,bg-primary). - Keyboard Navigation: Adheres to strict WAI-ARIA standards.
- Screen Reader Support: Includes semantic roles and live regions where appropriate.