DS0
Components

Table

Displays tabular data with consistent styling using native HTML table elements.

Overview

Table provides styled wrappers around native HTML table elements. It includes horizontal scroll support and consistent styling for headers, rows, cells, captions, and footers.

NameEmailRoleStatus
Alice Johnsonalice@example.comAdminActive
Bob Smithbob@example.comEditorActive
Carol Whitecarol@example.comViewerInactive

Usage


<Table>
  <Table.Header>
    <Table.Row>
      <Table.Head>Name</Table.Head>
      <Table.Head>Email</Table.Head>
    </Table.Row>
  </Table.Header>
  <Table.Body>
    <Table.Row>
      <Table.Cell>Alice</Table.Cell>
      <Table.Cell>alice@example.com</Table.Cell>
    </Table.Row>
  </Table.Body>
</Table>

API Reference

Table.Head

PropTypeDefaultDescription
sortDirection'ascending' | 'descending' | 'none'Sets aria-sort
  • Card — For card-based data layouts

On this page