shadcn-drag-and-drop
A Next.js demo of sortable pills of different widths, with native HTML5 and dnd-kit versions side by side.
- Category
- Libraries & Components
- Added
- GitHub stars
- 36
- License
- MIT
- Price
- Free
About
About shadcn-drag-and-drop
shadcn-drag-and-drop is a small Next.js project that shows two ways to reorder a list of pills. One uses the browser's native HTML5 drag and drop API. The other uses @dnd-kit/core and @dnd-kit/sortable with a line indicator that marks where the item will land. The pills have different widths based on their text, which is harder to sort than a column of equal rows.
There is no registry or package. Clone the repository, run npm install and npm run dev, and read the code to reuse it in your own project. The stack listed in the README is Next.js 15 with Turbopack, React 18, TypeScript and Tailwind CSS with shadcn/ui components. It is MIT licensed. It suits tag lists, filter chips and anything else that wraps onto several rows.
shadcn-drag-and-drop features
5 features
- Native HTML5 drag and drop example
- dnd-kit core and sortable example
- Line indicator for the drop position
- Pills sized to their content
- Next.js 15, React 18 and TypeScript
What you can build with shadcn-drag-and-drop
3 use cases
- Reordering tags or filter chips in a settings panel
- Choosing between native drag and drop and dnd-kit
- Adding a drop indicator to a wrapping sortable list
Libraries & Components
Similar to shadcn-drag-and-drop
More libraries & components like shadcn-drag-and-drop: the closest by what they do, then the most starred.
shadcn-extensionLibraryshadcn-extension is an MIT-licensed collection of React components that extends shadcn/ui, developed in a Turborepo monorepo with Next.js docs.
react-dnd-kit + shadcn/uiLibraryThis MIT-licensed React Kanban board combines dnd-kit, Tailwind CSS and shadcn/ui, with draggable columns and tasks and keyboard accessibility.
Full CalendarLibraryFull Calendar is an MIT-licensed calendar for shadcn/ui and Next.js with day to agenda views, event editing and drag and drop. Install it from a registry.
PlannerLibraryPlanner is an MIT-licensed React scheduling component with drag and drop, resource assignment and date ranges, styled with shadcn/ui.
React Confirm DialogLibraryReact Confirm Dialog is a customizable confirm dialog for React with a useConfirm hook, built on Radix UI Alert Dialog and styled with Tailwind CSS v4.
CalendarCNLibraryCalendarCN is an MIT-licensed React calendar built with shadcn/ui and Tailwind CSS, with a week view, event colors, dark mode and keyboard shortcuts.
Pricing
Ship it with Pro
The directory is free. Pro adds 6,000+ blocks, 14 premium templates and the MCP server, so your AI editor installs them for you.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What shadcn-drag-and-drop is, how to install it, its license and its alternatives.
Two: the native HTML5 drag and drop API, and @dnd-kit/core with @dnd-kit/sortable using a line to show the drop position.
Node.js 20 or higher and npm. Run npm install, then npm run dev.
A Next.js demo of sortable pills of different widths, with native HTML5 and dnd-kit versions side by side.
shadcn-drag-and-drop lists Native HTML5 drag and drop example, dnd-kit core and sortable example, Line indicator for the drop position, Pills sized to their content and Next.js 15, React 18 and TypeScript.
The directory lists these uses for shadcn-drag-and-drop: Reordering tags or filter chips in a settings panel, Choosing between native drag and drop and dnd-kit and Adding a drop indicator to a wrapping sortable list.
shadcn-drag-and-drop is made by crystaltai, at https://github.com/crystaltai. Its site is https://github.com/crystaltai/shadcn-drag-and-drop.
shadcn-drag-and-drop was added to the directory on February 3, 2025.
shadcn-drag-and-drop is in Libraries & Components. Component libraries and standalone components built on shadcn/ui, covering the data tables, pickers, editors and charts the core set leaves out.
Drag and drop, Components, Next.js, React, TypeScript, Tailwind CSS, Open source and MIT. Each tag has a page listing the other resources that carry it.
Yes. shadcn-drag-and-drop's page has a Live tab beside the screenshot that loads its site in a frame.
The directory lists no install command for shadcn-drag-and-drop. Follow the instructions on its site at https://github.com/crystaltai/shadcn-drag-and-drop.
The directory lists no shadcn CLI command for shadcn-drag-and-drop. Check its docs at https://github.com/crystaltai/shadcn-drag-and-drop for how to add it.
shadcn-drag-and-drop's repository is https://github.com/crystaltai/shadcn-drag-and-drop.
The directory links no separate docs for shadcn-drag-and-drop; start from its site at https://github.com/crystaltai/shadcn-drag-and-drop.
GitHub lists shadcn-drag-and-drop under the MIT license. Read the license file in its repository for the terms.
The directory records no price for shadcn-drag-and-drop. Its site, https://github.com/crystaltai/shadcn-drag-and-drop, is where its pricing, if any, is stated.
No. shadcn-drag-and-drop is made by crystaltai and listed here as a link. A shadcn.io Pro plan covers shadcn.io's own blocks, templates and tools.
Other resources in Libraries & Components, newest first: shadcn-extension, react-dnd-kit + shadcn/ui, Full Calendar and Planner. Their pages are linked under Similar to shadcn-drag-and-drop.
Open its category, Libraries & Components, or one of its tags (Drag and drop, Components and Next.js): each page lists the resources that share it.
4.9 out of 5 from 150+ developers
Found your stack? Ship it.
6,000+ blocks, premium templates and MCP in every Pro plan. The directory stays free.
Get Pro



