Data Table 4 - Column visibilityPro

Task table with a "View" dropdown of checkbox items that show or hide columns, plus a reset option; the first column is always visible.

About Data Table 4

Task table with a "View" dropdown of checkbox items that show or hide columns, plus a reset option; the first column is always visible.

Data Table 4 is a pro data table block for React, built on shadcn/ui and Tailwind CSS. It ships as 141 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
  • columns
  • visibility
  • dropdown
  • view

Installation

  1. Add the Chocolate UI registry to your components.json (see the installation guide).
  2. Run the shadcn CLI:
npx shadcn@latest add @chocolate/data-table-04

Dependencies installed automatically: lucide-react.

Uses: button, dropdown-menu, reveal, table, utils.

Usage

import DataTable04 from "@/components/blocks/data-table-04"

export default function Page() {
  return <DataTable04 />
}

FAQ