Data Table 2 - Sortable columns
Product table whose column headers toggle ascending and descending sort with arrow indicators and an accessible aria-sort state.
About Data Table 2
Product table whose column headers toggle ascending and descending sort with arrow indicators and an accessible aria-sort state.
Data Table 2 is a free data table block for React, built on shadcn/ui and Tailwind CSS. It ships as 122 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- table
- sort
- columns
- products
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/data-table-02Dependencies installed automatically: lucide-react.
Uses: reveal, table, utils.
Usage
import DataTable02 from "@/components/blocks/data-table-02"
export default function Page() {
return <DataTable02 />
}