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 fractalsvelte
Import
<script lang="ts">
	import { DataTable } from 'fractalsvelte';
</script>

Usage

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

<DataTable />

Props

PropTypeDefaultDescription
columnsColumn[]-Column definitions.
rowsRow[]-Row data keyed by column.
pageSizenumber10Rows shown per page.
selectedstring[][]Selected row ids. Supports bind:.