Component librarySortable list
Sortable list
ProReorder one consumer-owned list with explicit native move actions and accepted-state feedback.
npx shadcn@latest add @tidal-pro/sortable-listInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/sortable-list.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Controlled ordered items require unique IDs and string labels and support description, meta, decorative icon, disabled state, native list-item props/ref and separate native Move up/down button props/refs. onOrderChange receives the proposed item array, item ID, from/to indexes, direction and native click event; consumers accept or decline the proposal. Locked disabled items cannot move or be crossed. Root label/native ordered-list props/ref and disabled state are available. All move actions are type=button, 44px, caller-first and keyboard reachable through ordinary Tab navigation. Accepted moves announce the new position by default and recover focus within the same row only when the pressed boundary action becomes disabled. Optional label/announcement formatters, emptyMessage and announceMoves=false are supported. Consumers own ordering, validation, persistence and side effects; no drag behavior or form value is implied.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.