saturation/uisaturation/ui
DocsComponentsBlocksPagesEmails
GitHub

Sections

IntroductionComponentsInstallationMCPThemingDesign

Components

Components

General

AvatarBadgeButtonKbdProgressSeparatorSkeletonSpin ResolveSpinnerSync ButtonTypography

Forms & Inputs

Address LookupCalendar PickerCheckboxComboboxDate PickerEmoji PickerFavicon SearchFieldInputInput GroupInput OTPRadio GroupSelectSliderSwitchTextareaToggleToggle Group

Data Display

AccordionAlertCardChartComparison SliderCredit CardData TableEmptyItemSaturation Credit CardTableTree

Navigation

BreadcrumbCommandMenubarNavigation MenuPaginationTabs

Overlays

CollapsibleContext MenuDialogDropdown MenuSheet

Layout

Button GroupFont ProviderWizard Split Layout

Feedback

Sonner

Animation & Effects

Animated GroupAnimated ListAnimated NumberBeamBlur FadeBorder TrailGlow EffectLiquid MetalLoading StateParallaxPixelProgressive BlurRippleSpotlightText EffectText Shimmer

Productivity

Agent ChatAI Chat InputCoding AgentFiltersFull CalendarKanbanNovel Editor
Docs/Components/Table

Table

A styled table component.

Loading...

Installation

pnpm dlx shadcn@latest add @saturation-ui/table

Tailwind v4 — Source Scanning

The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

import {
  Table,
  TableBody,
  TableCell,
  TableHead,
  TableHeader,
  TableRow,
} from "@/components/ui/table"
<Table>
  <TableHeader>
    <TableRow>
      <TableHead>Name</TableHead>
      <TableHead>Email</TableHead>
    </TableRow>
  </TableHeader>
  <TableBody>
    <TableRow>
      <TableCell>John</TableCell>
      <TableCell>john@example.com</TableCell>
    </TableRow>
  </TableBody>
</Table>

Examples

With Badges

Loading...
Table with status badges.

With Footer

Loading...
Table with footer total.

API Reference

PropTypeDefaultDescription
classNamestring—Additional CSS classes.
PreviousSync ButtonNextTabs

On This Page

  • Installation
  • Usage
  • Examples
  • With Badges
  • With Footer
  • API Reference
A list of your recent invoices.
InvoiceStatusMethodAmount
INV001PaidCredit Card$250.00
INV002PendingPayPal$150.00
INV003UnpaidBank Transfer$350.00
INV004PaidCredit Card$450.00
INV005PaidPayPal$550.00
INV006PendingBank Transfer$200.00
INV007UnpaidCredit Card$300.00
InvoiceClientStatusAmount
INV-001Acme ProductionsPaid$12,500.00
INV-002Summit FilmsPending$8,750.00
INV-003Horizon MediaPaid$15,200.00
INV-004Apex StudiosUnpaid$6,300.00
INV-005Nova EntertainmentPaid$22,000.00
INV-006Peak CreativePending$4,800.00
INV-007Atlas DigitalUnpaid$11,100.00
DescriptionQtyRateTotal
Camera rental (5 days)1$2,500.00$2,500.00
Lighting package1$1,800.00$1,800.00
Grip equipment1$1,200.00$1,200.00
Sound recording kit2$450.00$900.00
Production assistant5$300.00$1,500.00
Catering (crew of 20)5$600.00$3,000.00
Grand Total$10,900.00