Table Head
TableHead is a headless component that renders a <thead> element within a table. It groups header rows that define column labels.
Use this component within a Table to define the header section containing column headings.
TableHead is a headless component that renders a <thead> element within a table. It groups header rows that define column labels.
Use this component within a Table to define the header section containing column headings.
<thead class="table-head"><tr class="table-row"><th class="table-th">Column</th></tr></thead><Table label="Users">
<TableHead>
<TableRow>
<th>Name</th>
<th>Email</th>
</TableRow>
</TableHead>
</Table>
// In your Svelte component:
import TableHead from "lily-design-system-svelte-headless/components/TableHead/TableHead.svelte";
<TableHead>
<!-- TableHead content -->
</TableHead>
<Table label="Users">
<TableHead>
<TableRow>
<th>Name</th>
<th>Email</th>
</TableRow>
</TableHead>
</Table>
className: string (default: "") -- CSS class name for the header groupchildren: slot (required) -- header rows, typically TableRow components with <th> cells...restProps: unknown -- additional attributes spread onto the <thead> elementStandard table keyboard interactions.
No additional ARIA attributes. Header semantics are provided by the <thead> element.
<th> cells with scope="col" that define column headingsThis headless component renders a <thead> element. The consumer provides all visual styling.
The consumer provides all CSS styling. The component renders with a .table-head class for targeting.
<thead> elementTableHead is a child of Table, 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-row — a table interactive grid row <tr>table-td — a table interactive grid data cell <td>table-th — a table interactive grid column <th><thead> element for table header group semanticsclassName for CSS class targetingrestProps onto the <thead> element for consumer customizationGenerated from this component's canonical metadata — the machine-checked source the implementations are held to.
<thead> semantics group the header rows of the tableStandard table keyboard interactions.
className: string (default: "") -- CSS class name for the header groupchildren: slot (required) -- header rows, typically TableRow components with <th> cells...restProps: unknown -- additional attributes spread onto the <thead> element