Table

Accessible tabular data with explicit headers.

Examples

Installation

Install the package, then import only the components a route uses. Exports are tree-shakable.

Install
pnpm add fractalsvelte
Import
<script lang="ts">
	import { Table } from 'fractalsvelte';
</script>

Usage

Usage
<script lang="ts">
	import { Table } from 'fractalsvelte';
</script>

<Table columns={columns} rows={rows} />

Props

PropTypeDefaultDescription
columnsColumn[]-Column definitions.
rowsRow[]-Row data keyed by column.
captionstring-Accessible caption for the table.