Data Table
Sort, select, and paginate typed rows.Examples
Installation
Install the package, then import only the components a route uses. Exports are tree-shakable.
Install
pnpm add fractalsvelteImport
<script lang="ts">
import { DataTable } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { DataTable } from 'fractalsvelte';
</script>
<DataTable />Props
| Prop | Type | Default | Description |
|---|---|---|---|
columns | Column[] | - | Column definitions. |
rows | Row[] | - | Row data keyed by column. |
pageSize | number | 10 | Rows shown per page. |
selected | string[] | [] | Selected row ids. Supports bind:. |
