Installation
This guide covers how to install and set up Svelte Reactive Table in your project.
Prerequisites
Before installing, ensure you have:
- Node.js installed on your system
- A Svelte 5.0.0+ project (the library uses Svelte 5’s runes system)
- A package manager (npm, pnpm, yarn, or bun)
Installing the Package
Install the library using your preferred package manager:
npm install svelte-reactive-tablepnpm add svelte-reactive-tableyarn add svelte-reactive-tablebun add svelte-reactive-tableImport and Use
Once installed, importing the library is straightforward:
<script lang="ts">
import { reactiveTable } from 'svelte-reactive-table';
// Optional: Import plugins as needed
import {
reactiveFiltering,
reactivePagination,
reactiveColumnVisibility,
reactiveSorting
} from 'svelte-reactive-table';
</script>TypeScript users: The library is built with TypeScript and includes full type definitions out of the box!
All Set!
That’s it - you’re ready to build reactive tables! The installation gives you access to:
- Core table functionality
- All available plugins (filtering, pagination, sorting, column visibility)
- Full TypeScript support
- Comprehensive API for customization
What’s Next?
- Quick Start - Build your first reactive table with plugins
- Basic Usage - Learn the fundamentals
- Examples - See real implementations in action