
Sortable
A Next.js sortable component powered by shadcn/ui, Radix UI, and dnd-kit, featuring headless primitives and form/table integration.

Dynamic List Sorting with Next.js, shadcn/ui, and dnd-kit
Implement intuitive drag-and-drop list organization in your Next.js projects using this Sortable tool. It combines the strengths of shadcn/ui for polished components, Radix UI for accessibility, and dnd-kit for the core sorting mechanics. Bootstrapped with create-t3-app
, this solution provides headless UI primitives, allowing developers to build highly customizable and interactive user interfaces. It also integrates seamlessly with react-hook-form
and TanStack Table for complex data management scenarios.
Features:
- Headless Sortable Primitives: Provides foundational UI elements for sortable lists, built with shadcn/ui, Radix UI, and dnd-kit, ensuring high customizability.
- React Hook Form
useFieldArray
Integration: Facilitates the management of dynamic, sortable arrays within forms by integrating directly withreact-hook-form
. - TanStack Table Compatibility: Allows for the implementation of sortable rows or columns when used in conjunction with TanStack Table.
- Next.js Framework Core: Developed using the Next.js framework, enabling features like server-side rendering and optimized performance.
- Tailwind CSS for Styling: Employs Tailwind CSS, offering a utility-first approach for rapid and responsive UI design.
- Drag and Drop by dnd-kit: Utilizes dnd-kit to deliver a feature-rich and accessible drag and drop experience.
- Data Validation with Zod: Integrates Zod for defining schemas and validating data, enhancing application reliability.
- Bootstrapped with create-t3-app: Initiated with
create-t3-app
, providing a modern, full-stack, typesafe project structure.
Summary:
This Sortable tool equips developers with a comprehensive solution for adding drag-and-drop reordering to web applications. Built on Next.js and leveraging shadcn/ui, Radix UI, and dnd-kit, it offers headless components for flexibility. Its integration with form and table libraries streamlines development, making it easier to create engaging user experiences involving dynamic list management and data organization. It's an ideal starting point for projects requiring sophisticated sortable interfaces.

Similar to Sortable:


