New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

svelte-reactive-table

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-reactive-table

A headless, fully reactive table library for Svelte applications

latest
Source
npmnpm
Version
0.6.1
Version published
Maintainers
1
Created
Source

Svelte Reactive Table

NPM version License: MIT

A headless, fully reactive table library for Svelte applications. This project provides a flexible, customizable table solution without imposing any styling constraints.

What is Svelte Reactive Table?

Svelte Reactive Table is designed to give you complete control over your data tables while handling all the complex state management and interactions. As a headless UI library, it provides the functionality but leaves the styling and UI decisions entirely up to you.

Basic Usage

<script lang="ts">
	import { reactiveTable } from 'svelte-reactive-table';

	// Your data array
	const data = [
		{ id: 1, name: 'John Doe', age: 30, city: 'New York' },
		{ id: 2, name: 'Jane Smith', age: 25, city: 'Los Angeles' }
	];

	// Define your columns
	const columns = [
		{ accessor: 'id', header: 'ID', isIdentifier: true },
		{ accessor: 'name', header: 'Name' },
		{ accessor: 'age', header: 'Age' },
		{ accessor: 'city', header: 'City' }
	];

	const table = reactiveTable(data, columns);
</script>

<table>
	<thead>
		<tr>
			{#each table.headers as header}
				<th>{header}</th>
			{/each}
		</tr>
	</thead>
	<tbody>
		{#each table.rows as row}
			<tr>
				{#each row.cells as cell}
					<td>{cell.value}</td>
				{/each}
			</tr>
		{/each}
	</tbody>
</table>

Features and Implementation Status

  • Basic Table Structure
    • ✅ Column definitions
    • ✅ Row rendering
    • ✅ Reactive data updates
  • 🧠 Headless Design
    • ✅ No predefined styles
    • ⬜ Customizable cell rendering
    • ⬜ Custom header rendering
  • Reactive Core
    • ✅ Reactive data binding
    • ✅ Plugin architecture
    • ⬜ Dynamic column updates
    • ⬜ Computed columns
  • 🔄 Sorting Plugin
    • ✅ Column-based sorting
    • ✅ Multi-column sort
    • ✅ Custom comparators
  • 🔍 Filtering
    • ⬜ Global search
    • ⬜ Column filters
    • ⬜ Custom filter functions
  • 📊 Pagination Plugin
    • ✅ Page size control
    • ✅ Page navigation
    • ✅ First/last page navigation
    • ⬜ Load more functionality
  • 🔢 Row Selection
    • ⬜ Single selection
    • ⬜ Multiple selection
    • ⬜ Range selection
  • 🔗 Column Management
    • ⬜ Column resizing
    • ⬜ Column reordering
    • ✅ Column visibility plugin

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

svelte

FAQs

Package last updated on 05 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts