Keyboard accessible by default with semantic markup, visible focus treatment, and tokenized states. Add descriptive labels for icon-only or decorative usage.
Dependency notes
Check Installation for shared peers. This component keeps styling in Tailwind classes and the --zui-* token contract.
Data
Sortable list for drag-to-reorder interfaces
SortableList provides a small, dependency-free primitive for reordering application data with native drag events and accessible move controls.
⋮⋮Design tokens
⋮⋮Build component
⋮⋮Publish package
Sortable list playground
Choose a visual variant and item set, then drag rows or use the move buttons to reorder the list. The generated snippet updates with every selection.
⋮⋮Design tokens
⋮⋮Build component
⋮⋮Publish package
Sortable List API
Generated from the package prop types and variant definitions.
Override these sortable-list variables on :root, a theme selector, or a component wrapper. Each appearance publishes its own border and background pair, the gradients add from/to stops plus a foreground so text on them stays themeable, and the drag handle has its own colour.