Components

Table

A data table with styled header, body, footer, and row hover states. Supports striped rows for easier scanning.

Basic usage

InvoiceCustomerAmountStatus
INV-001Alice Johnson$250.00Paid
INV-002Bob Smith$150.00Pending
INV-003Carol White$350.00Paid
INV-004David Brown$450.00Overdue

Striped variant

Use variant="striped" for alternating row backgrounds.

InvoiceCustomerAmountStatus
INV-001Alice Johnson$250.00Paid
INV-002Bob Smith$150.00Pending
INV-003Carol White$350.00Paid
INV-004David Brown$450.00Overdue

With footer

InvoiceCustomerAmount
INV-001Alice Johnson$250.00
INV-002Bob Smith$150.00
INV-003Carol White$350.00
INV-004David Brown$450.00
Total$1,200.00

Props

PropTypeDefaultDescription
variant'default' | 'striped''default'Visual style. Striped adds alternating row backgrounds.
classNamestringAdditional Tailwind classes.

Accessibility

  • Uses semantic <table>, <thead>, <tbody>, <tfoot>.
  • Column headers use <th> for proper screen reader announcement.
  • Wrap table in overflow-auto container for horizontal scroll on small screens.