Svelte DataGrid

A high-performance, virtualized data grid for Svelte 5.

Features

  • Virtualized Rendering - Efficiently handles thousands of rows
  • Svelte 5 Runes - Built with modern reactive primitives
  • TypeScript - Full type safety out of the box
  • Flexible Data Sources - Works with local data, REST APIs, or databases
  • Rich Interactions - Selection, sorting, filtering, editing, and more

Quick Start

Install the package:

npm install svelte-datagrid

Create your first grid:

<script>
  import { DataGrid } from 'svelte-datagrid';

  const columns = [
    { key: 'id', header: 'ID', width: 80 },
    { key: 'name', header: 'Name', width: 200 }
  ];

  const data = [
    { id: 1, name: 'Alice' },
    { id: 2, name: 'Bob' }
  ];
</script>

<div style="height: 400px;">
  <DataGrid {data} {columns} />
</div>

Documentation Structure

This documentation follows the Diátaxis framework:

Tutorials

Learning-oriented - Step-by-step lessons for beginners

How-to Guides

Task-oriented - Practical steps to solve specific problems

Reference

Information-oriented - Technical descriptions and specifications

Concepts

Understanding-oriented - How and why things work

Quick Links

I want to…Go to…
Get started quicklyGetting Started Tutorial
See all available propsDataGrid Reference
Add filtering to my gridFiltering How-to
Understand the architectureArchitecture Explanation