Components
Accordion
Expandable/collapsible sections with keyboard navigation.
Reveal or hide content sections on demand. Supports single or multiple open sections simultaneously.
Installation
Usage
Keyboard Shortcuts
| Key | Action |
|---|---|
↑ / k | Previous section |
↓ / j | Next section |
Enter / Space | Toggle open/close |
g | First section |
G | Last section |
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
items | AccordionItem[] | — | Section definitions (required) |
multiple | boolean | false | Allow multiple sections open |
borderStyle | 'single' | 'rounded' | 'none' | 'none' | Border around sections |
focus | boolean | true | Accept keyboard input |
theme | InkUITheme | darkTheme | Color theme |