Design System Builder

Table

Table is a compound component that provides table functionality.

Active
NameStatus
John DoeActive

Examples

variant

Different variant options for the Table component.

default

NameStatus
John DoeActive

striped

NameStatus
John DoeActive

Installation

npm install @your-design-system/table
import { Table } from "@/components/ui/table"

export function TableDemo() {
  return (
    <Table variant="default">
      {/* Content */}
    </Table>
  )
}

API Reference

This component does not accept any props.

Styling

The component uses Tailwind CSS classes for styling. You can customize the appearance by overriding these classes.

Base Classes

w-fullcaption-bottomtext-sm

variant Variants

default

striped

[&_tr:nth-child(even)]:bg-muted/50

Design System Compliance

This component is validated against atomic design principles and foundation token usage.