Data Table View

A compact column visibility dropdown that lets users check or uncheck every hideable table column.

ProjectStatusOwnerUpdated
Website redesignIn progressMaya ChenAug 4, 2026
Mobile applicationPlanningNoah WilliamsJul 29, 2026
Analytics dashboardIn progressAarav PatelAug 2, 2026
Customer portalCompleteSofia GarciaJul 18, 2026

Installation

pnpm dlx shadcn-svelte@latest add http://sveltekit-prerender/r/data-table-view.json

Usage

Enable column visibility on the table, then pass the table instance to the component. The important setup is highlighted below.

usage.svelte

Props

Data table view props

NameTypeDefaultDescription
table
TanStack table required The table instance containing columns configured with the visibility feature.
label
string "View" Text displayed in the dropdown trigger.
class
string undefined Optional classes for the dropdown trigger.