Dev Design Library

Sortable list persisted to a backend

Persist the new order with onValueCommit, optimistic updates, and Sonner rollback.

Sortable list persisted to a backend preview
Library
ReUI
Framework
React
Type
block
License
MIT
Dependencies
sonner
Install
npx shadcn@latest add @reui/c-sortable-8
Files
  • registry-reui/bases/radix/components/sortable/c-sortable-8.tsx
  • registry-reui/bases/radix/reui/badge.tsx
  • registry-reui/bases/radix/reui/sortable.tsx
  • app/(create)/components/icon-placeholder.tsx
  • lib/icon-library-store.ts
  • registry/icons/icon-lucide.tsx
  • registry/icons/icon-tabler.tsx
  • registry/icons/icon-hugeicons.tsx
Source
https://github.com/keenthemes/reui

Categories

More from ReUI