Table

A semantic table presented on the same elevated surface as Card. Table provides one restrained treatment for compact, readable structured data.

Props

PropTypeDefaultDescription
childrenReactNode-Native table sections and rows
variant"default" | "tonal" | "floating""default"Card structure and elevation treatment
materialMaterial-Optional shared surface material
paddingPadding"none"Padding around the table inside the Card
gapGap"none"Card gap, available for composition
jssJSS-Styles the Card surface
jssTableJSS-Styles the inner <table> element

Table also accepts native HTML table attributes.

Basic usage

NameRoleStatus
Ada LovelaceEngineerActive
Grace HopperResearcherActive
Alan TuringMathematicianArchived
<Table>
  <thead>
    <tr>
      <th>Name</th>
      <th>Role</th>
      <th>Status</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Ada Lovelace</td>
      <td>Engineer</td>
      <td>Active</td>
    </tr>
  </tbody>
</Table>

Surface

Table exposes Card's surface props directly. This keeps the default treatment opinionated while allowing the table to participate in the same material and elevation system as other regions.

RegionPurpose
SidebarPrimary navigation
InspectorContextual controls
<Table material="aurora" variant="tonal">
  <thead>
    <tr>
      <th>Region</th>
      <th>Purpose</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Sidebar</td>
      <td>Primary navigation</td>
    </tr>
  </tbody>
</Table>

Behavior

  • The Card surface owns background, radius, and elevation.
  • Rows receive one subtle separator and a quiet hover state.
  • Wide tables scroll horizontally instead of compressing their content.
  • Semantic table markup remains unchanged for assistive technology.