Sortable
Reorder lists and grids with drag handles, keyboard controls and cancellation.
Installation
Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.
Copy an example into your project with the shadcn CLI: npx shadcn@latest add https://design.gaudi.site/r/sortable-media-grid.json.
Usage
Examples
Media grid
Nested lists
Persisted order
List with row controls
API
11 props
Accessibility
Keep a keyboard-operable handle and announce moves. The application owns saving and restoring the last committed order.
Related
CardCard frames reusable content with title, subtitle, and optional children.8 examplesPillPill renders compact category and status labels.4 examplesToastTransient feedback for completed actions, errors and recoverable background work.4 examplesSwitchSwitch renders a token-styled boolean preference control.4 examplesFieldField composes form label, description, error, and input building blocks.7 examplesuseTimeoutA one-off timer with reset and clear.