Table

Data Display

Semantic HTML table with responsive layouts, fixed headers, striping, and hover states

Basic Usage

Name
Phone
Location
John Doe
+1 234 567 8900
New York
Jane Smith
+1 234 567 8901
Los Angeles
Mike Johnson
+1 234 567 8902
Chicago

Complex Cells

User
Role
Department
Age
Status
Alice Johnson
Alice Johnson
AdminEngineering28active
DeveloperEngineering32active
Charlie Brown
Charlie Brown
DesignerDesign26inactive

Glass Variant

Product
Units Sold
Revenue
Change
Laptop145$145,000
+12.5%
Mouse523$15,690
+8.3%
Keyboard342$27,360
-5.2%

Usage Guidelines

When to Use

  • Simple data display
  • Static tables
  • Comparison tables

Accessibility

  • Proper table semantics
  • Caption for table purpose
  • Column headers with scope

Performance

  • Native table rendering
  • CSS-only responsive behavior

Common Mistakes

  • Using for layout
  • Missing column headers

Frequently Asked Questions

Table is a simple semantic HTML table. DataTable has sorting, filtering, and virtualization.
Yes, Table supports striped rows and hover states.

View on GitHub

See the full source code on GitHub