Table Body
TableBody is a headless component that renders a <tbody> element within a table. It groups the main data rows of the table.
Use this component within a Table to define the body section containing data rows.
TableBody is a headless component that renders a <tbody> element within a table. It groups the main data rows of the table.
Use this component within a Table to define the body section containing data rows.
<tbody class="table-body"><tr class="table-row"><td class="table-td">Data</td></tr></tbody><Table label="Users">
<TableBody>
<TableRow>
<TableTD>Alice</TableTD>
<TableTD>alice@example.com</TableTD>
</TableRow>
</TableBody>
</Table>
// In your Svelte component:
import TableBody from "lily-design-system-svelte-headless/components/TableBody/TableBody.svelte";
<TableBody>
<!-- TableBody content -->
</TableBody>
<Table label="Users">
<TableBody>
<TableRow>
<TableTD>Alice</TableTD>
<TableTD>alice@example.com</TableTD>
</TableRow>
</TableBody>
</Table>
className: string (default: "") -- CSS class name for the body groupchildren: slot (required) -- data rows, typically TableRow components...restProps: unknown -- additional attributes spread onto the <tbody> elementStandard table keyboard interactions.
No additional ARIA attributes. Body semantics are provided by the <tbody> element.
This headless component renders a <tbody> element. The consumer provides all visual styling.
The consumer provides all CSS styling. The component renders with a .table-body class for targeting.
<tbody> elementTableBody is a child of Table, following the Table pattern: Table > TableHead/TableBody/TableFoot > TableRow > TableTD.
table — a table with rows and columns <table>table-foot — a table interactive grid tfoot <tfoot>table-head — a table interactive grid thead <thead>table-row — a table interactive grid row <tr>table-td — a table interactive grid data cell <td>table-th — a table interactive grid column <th><tbody> element for table body group semanticsclassName for CSS class targetingrestProps onto the <tbody> element for consumer customizationGenerated from this component's canonical metadata — the machine-checked source the implementations are held to.
<tbody> semantics group the body rows of the tableStandard table keyboard interactions.
className: string (default: "") -- CSS class name for the body groupchildren: slot (required) -- data rows, typically TableRow components...restProps: unknown -- additional attributes spread onto the <tbody> element