@hurtigruten/svelte-table
v3.0.8-rc11
Published
A simple, sortable svelte table component
Downloads
452
Readme
Svelte Table
Quick start
npm i @hurtigruten/svelte-table --save
Simple example
<SvelteTable {rows} {columns} />
Table with custom components
<SvelteTable {rows} {columns} let:cell let:column>
<span class="text-white bg-gray-800" slot="head">{column.title}</span>
<span class="flex items-center bg-blue-100" slot="cell">{cell}</span>
</SvelteTable>