JSON Tree
JSONTree renders any JSON-serialisable value as a collapsible indented tree.
Beta
Ready to use, but its API may still change before it is marked stable.
Usage
Import
import { JSONTree } from "@qeetrix/ui";It can also be imported on its own from @qeetrix/ui/components/json-tree.
States
hover · focus-visible · expanded
Support
| Feature | Status |
|---|---|
| Right-to-left | Supported |
| Dark mode | Supported |
| Density | Not supported |
| Server rendering | Client component |
| Reduced motion | Supported |
Accessibility
Follows the WAI-ARIA treeview pattern. Not yet audited.
Keyboard
Tab ArrowUp ArrowDown ArrowLeft ArrowRight Home EndFocus
One Tab stop for the group; arrow keys move between items (roving tab stop).
Tests
Covered by unit, accessibility (axe), interaction and visual tests.