Table TD
TableTD is a headless component that renders a <td> element within a table row. It represents a single data cell.
Use this component within TableRow to define individual data cells in a table.
TableTD is a headless component that renders a <td> element within a table row. It represents a single data cell.
Use this component within TableRow to define individual data cells in a table.
<td class="table-td">Cell data</td><TableRow>
<TableTD>Alice</TableTD>
<TableTD>alice@example.com</TableTD>
</TableRow>
// In your Svelte component:
import TableTD from "lily-design-system-svelte-headless/components/TableTD/TableTD.svelte";
<TableTD>
<!-- TableTD content -->
</TableTD>
<TableRow>
<TableTD>Alice</TableTD>
<TableTD>alice@example.com</TableTD>
</TableRow>
className: string (default: "") -- CSS class name for the cellchildren: slot (required) -- cell content...restProps: unknown -- additional attributes spread onto the <td> elementStandard table cell keyboard interactions.
No additional ARIA attributes. Cell semantics are provided by the <td> element.
scope attributeThis headless component renders a <td> element. The consumer provides all visual styling.
The consumer provides all CSS styling. The component renders with a .table-td class for targeting.
<td> elementTableTD is a child of TableRow, following the Table pattern: Table > TableHead/TableBody/TableFoot > TableRow > TableTD.
table — a table with rows and columns <table>table-body — a table interactive grid tbody <tbody>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-th — a table interactive grid column <th><td> element for table data cell semanticsclassName for CSS class targetingrestProps onto the <td> element for consumer customizationGenerated from this component's canonical metadata — the machine-checked source the implementations are held to.
<td> exposes a data cell within the surrounding <table>Standard table cell keyboard interactions.
className: string (default: "") -- CSS class name for the cellchildren: slot (required) -- cell content...restProps: unknown -- additional attributes spread onto the <td> element