ComponentsBlocksDocsExamples

Alert
Calendar
Card
Chart
Data Grid
Update
Drawer
File Upload
Kanban
Kbd
Pagination
Resizable
Rating
Stepper
Scrollspy
Skeleton
Sortable
Sonner
Table
Textarea

Components

Sortable

UI Library:

A drag-and-drop sortable component designed for seamless item organization across customizable columns.

Installation

pnpm dlx shadcn@latest add @toui/sortable

Examples

Grid

Nested

API Reference

The Sortable component is a flexible drag-and-drop component for organizing items in lists. Below is the complete API reference:

Sortable

The root Sortable component includes the following props:

PropTypeDefault
value T[]
onValueChange (value: T[]) => void
getItemValue (item: T) => string
children React.ReactNode
className string
onMove (event: SortableMoveEvent) => void
strategy 'horizontal' | 'vertical' | 'grid''vertical'
onDragStart (event: DragStartEvent) => void
onDragEnd (event: DragEndEvent) => void

SortableItem

A draggable item in the sortable list.

PropTypeDefault
value string
asChild booleanfalse
className string
children ReactNode
disabled booleanfalse

SortableItemHandle

A drag handle for an item.

PropTypeDefault
asChild booleanfalse
className string
children ReactNode
cursor booleantrue

Credits

  • Built with DndKit.
PreviouseSkeletonNextSonner

On This Page

  • Installation
  • Examples
    • Grid
    • Nested
  • API Reference
    • Sortable
    • SortableItem
    • SortableItemHandle
  • Credits

We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking Accept, you agree to our use of cookies.
Learn more.

Token UI

Components

  • Overview
  • Pricing
  • Marketplace
  • Features
  • Integrations
  • Pricing

Blocks

  • Charts
  • Team
  • Blog
  • Careers
  • Contact
  • Privacy

Examples

  • Help
  • Sales
  • Advertise

Docs

  • Twitter
  • Instagram
  • LinkedIn

© 2025 TOUI.dev. All rights reserved.

  • Terms and Conditions
  • Privacy Policy