Sortable Data Table

A dense, quiet deployments table: sortable headers with aria-sort, search and status filter chips, rows that glide to their new order, hairline hover and selected tints, a bulk-action bar that springs up on selection, and designed loading and empty states.

Try it: Sort a column, filter by status, search “main”, tick a few rows.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/sortable-data-table.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/sortable-data-table. You can also copy the source into components/ui/sortable-data-table.tsx (view on GitHub).

Usage

import { SortableDataTable } from '@/components/ui/sortable-data-table'

Props

Component props
PropTypeDefaultNotes
rowsTableRow[]DEFAULT_TABLE_ROWS{ id, name, branch, status, duration, author, ago }.
loadingbooleanfalseSkeleton rows that mirror the layout.
onSelectionChange(ids: string[]) => void—Fires when the selection changes.
captionstring'Recent deployments'Accessible table caption.
classNamestring—Extra classes merged onto the card.

Dependencies

  • motion
  • lucide-react
  • Date Range Picker

    A calendar that previews the range as you hover with a continuous tinted band between endpoint pills, month pages that slide in the direction you move, preset chips, full grid keyboard support and a…

  • Onboarding Stepper

    A three-question setup flow on one continuous surface: a progress capsule stretches into the current step with a shared-layout spring, panels slide in the direction of travel, validation speaks…

  • Feedback State Panel

    One surface for the screens nobody designs — empty, error, offline, permission and success — each with its own glyph and motion character, copy that names the next step, and a primary action with a…

  • Usage Quota Meter

    A billing-period usage card: hairline tracks fill with stacked segments on the house ease, figures count up in tabular numerals, a limit tick marks 100%, and bars go amber near the limit and rose…

  • Keyboard Shortcut Hint

    A cheat sheet of tactile keycaps that knows your platform (⌘ ⌥ ⇧ vs Ctrl Alt Shift); hold real keys and matching caps sink and light up, complete a combo and its row confirms. Exports Kbd for inline…

  • Deploy Timeline

    A build pipeline that reads like a calm status page: dots resolve to spinners to ticks, the rail fills as steps complete, elapsed times tick in tabular figures, each row expands into logs, and…

See all 14 Product UI components