Data Table Column Header

A table heading with sorting, pinning, ordering, and visibility actions.

Click a heading to cycle its sort direction.

Website redesignActiveMaya ChenAug 4, 2026$24,000
Mobile applicationPausedNoah WilliamsJul 29, 2026$42,000
Analytics dashboardActiveAarav PatelAug 2, 2026$18,000
Customer portalCompletedSofia GarciaJul 18, 2026$31,000
Design systemActiveLiam BrownAug 1, 2026$15,000
Marketing websiteCompletedEmma WilsonJul 22, 2026$12,000

Installation

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

Usage

Pass the header column directly to the component. The highlighted features enable pinning and ordering; sorting and visibility remain independently optional.

usage.svelte

Props

Data table column header props

NameTypeDefaultDescription
column
TanStack column required A TanStack column. Menu actions appear for the sorting, visibility, pinning, and ordering features configured on its table.
title
string required The visible and accessible column label.
class
string undefined Optional classes for the root header controls.