Tables

Tables provide a structured way to display data in rows and columns. They support various content types, alignment options, and can be customized for different use cases.

Basic Usage

Use tables to display structured data with consistent column headers and row content.

Basic Table

100%
Customer Date Status Amount John Doe Jul 29, 2024 Paid $49.00 Jane Smith Jul 28, 2024 Overdue $149.00

Rich Content

Tables can display complex content including images, badges, buttons, and other components.

Rich Content Table

100%
User Role Actions
John Doe
john@example.com
Admin

Cell Alignment

Control the alignment of cell content using the align attribute.

Cell Alignment

100%
Left (Default) Center Right Content Content Content

API Reference

Table Cell Properties

Property Type Default Description align string 'left' 'left', 'center', 'right' amount boolean false Styles cell as monetary amount

Common Patterns

Data Table

Data Table Pattern

100%
ID Date Description Amount #1234 2024-07-29 Monthly Subscription $29.00

User List

User List Pattern

100%
User Status Role Actions
JD
John Doe
Active Admin

Best Practices

  • Use clear, descriptive column headers
  • Align numerical data to the right
  • Keep table content concise
  • Use consistent formatting within columns
  • Consider mobile responsiveness
  • Group related data in adjacent columns
Pro tip: Use the amount attribute on cells containing monetary values for consistent formatting.