A simple, sortable svelte table component


Keywords
svelte, sveltejs, table
License
MIT
Install
npm install @hurtigruten/svelte-table@1.3.4

Documentation

Svelte Table

Documentation

Live Demo

Quick start

npm i @hurtigruten/svelte-table@2.0.4 --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>