UNPKG

@humanspeak/svelte-headless-table

Version:

A powerful, headless table library for Svelte that provides complete control over table UI while handling complex data operations like sorting, filtering, pagination, grouping, and row expansion. Build custom, accessible data tables with zero styling opin

16 lines (15 loc) 609 B
import type { NewTablePropSet, TablePlugin } from '../types/TablePlugin.js'; /** * Creates a grid layout plugin that renders the table using CSS Grid. * This allows for more flexible layouts and better handling of complex headers. * * @template Item - The type of data items in the table. * @returns A TablePlugin that applies CSS Grid layout to the table. * @example * ```typescript * const table = createTable(data, { * grid: addGridLayout() * }) * ``` */ export declare const addGridLayout: <Item>() => TablePlugin<Item, Record<string, never>, Record<string, never>, NewTablePropSet<never>>;