Table

A responsive table for displaying tabular data.

Invoice Status Method Amount
INV001 Paid Credit Card $250.00
INV002 Pending PayPal $150.00
INV003 Unpaid Bank Transfer $350.00

Installation

npx lily-svelte@latest add table

Usage

<script lang="ts">
	import * as Table from '$lib/components/ui/table';
</script>
 
<Table.Root>
	<Table.Header>
		<Table.Row>
			<Table.Head>Invoice</Table.Head>
			<Table.Head class="text-right">Amount</Table.Head>
		</Table.Row>
	</Table.Header>
	<Table.Body>
		<Table.Row>
			<Table.Cell>INV001</Table.Cell>
			<Table.Cell class="text-right">$250.00</Table.Cell>
		</Table.Row>
	</Table.Body>
</Table.Root>

Built by levish. The source code is available on GitHub.

Quiet by design.