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