diff --git a/src/lib/components/Table.svelte b/src/lib/components/Table.svelte index e40521e..52c92a1 100644 --- a/src/lib/components/Table.svelte +++ b/src/lib/components/Table.svelte @@ -8,17 +8,20 @@ /** The columns the table should have. */ columns: TableColumn[]; + /** Optional height classes */ + height?: string; + /** An optional function handling clicking on a table row */ handler?: (event: Event, id: string) => Promise; } - let { data, columns, handler = undefined }: TableProps = $props(); + let { data, columns, height = "", handler = undefined }: TableProps = $props(); {#if data.length > 0} -
- - +
+
+ {#each columns as col}
{col.label}