This component implements the Material Design 3 table with proper accessibility support. Tables allow displaying data in a structured grid format.
Qwik M3 Table
Prop Controls
Usage
| Name | Title | Role | Status | |
|---|---|---|---|---|
| Lindsay Walton | Front-end Developer | lindsay.walton@example.com | Member | Active |
| Courtney Henry | Designer | courtney.henry@example.com | Admin | Offline |
| Tom Cook | Product Manager | tom.cook@example.com | Member | Active |
<Table.Root variant="surface" size="md">
<Table.Header>
<Table.Row>
<Table.Head>Name</Table.Head>
<Table.Head>Title</Table.Head>
<Table.Head>Email</Table.Head>
<Table.Head>Role</Table.Head>
<Table.Head>Status</Table.Head>
</Table.Row>
</Table.Header>
<Table.Body>
{people.map((person) => (
<Table.Row key={person.id}>
<Table.Cell>{person.name}</Table.Cell>
<Table.Cell>{person.title}</Table.Cell>
<Table.Cell>{person.email}</Table.Cell>
<Table.Cell>{person.role}</Table.Cell>
<Table.Cell>{person.status}</Table.Cell>
</Table.Row>
))}
</Table.Body>
</Table.Root>