TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/IzumiSy/seizen-table/llms.txt
Use this file to discover all available pages before exploring further.
SeizenTable component is the highest-level abstraction for rendering a table. It includes default UI, pagination, and automatic plugin slot rendering.
Import
Usage
Basic Usage
With Pagination Options
With Loading State (Remote Mode)
Custom Styling
Props
The table instance from
useSeizenTable.Additional CSS class name for the table container.
Pagination configuration options.Properties:To disable pagination:
enable?: boolean- Whether to show pagination (default:true)sizeOptions?: number[]- Page size options for dropdown (default:[10, 20, 50, 100])
Show loading overlay on the table. Useful for Remote Mode when fetching data.
Custom loader component to display during loading state. Defaults to a built-in spinner.
Compound Components
For more control over table layout and plugin slots, use compound components:Available Compound Components
SeizenTable.Root
SeizenTable.Root
Root container providing table context to all child components.Props:
table: SeizenTableInstance<TData>(required)className?: stringchildren: React.ReactNode
SeizenTable.Content
SeizenTable.Content
Main content area container (excludes side panels).Props:
children: React.ReactNode
SeizenTable.Table
SeizenTable.Table
The actual
<table> element.Props:before?: React.ReactNode- Content to render before the table (e.g., loading overlay)after?: React.ReactNode- Content to render after the tablechildren: React.ReactNode
SeizenTable.Header
SeizenTable.Header
Table header (
<thead>) with column headers.Automatically renders:- Column headers
- Sort indicators
- Context menu triggers
- Plugin cell slots in header
SeizenTable.Body
SeizenTable.Body
Table body (
<tbody>) with data rows.Automatically renders:- Data rows
- Row selection
- Plugin inline row slots
- Plugin cell slots
SeizenTable.Row
SeizenTable.Row
Individual table row (
<tr>). Usually not needed - Body renders rows automatically.Props:row: Row<TData>- TanStack Table row object
SeizenTable.Cell
SeizenTable.Cell
Individual table cell (
<td>). Usually not needed - Row renders cells automatically.Props:cell: Cell<TData, unknown>- TanStack Table cell object
SeizenTable.Paginator
SeizenTable.Paginator
Pagination controls. See Paginator for details.Props:
table: SeizenTableInstance<TData>(required when used standalone)sizeOptions?: number[]showPageSizeSelector?: booleanshowPageInfo?: boolean
SeizenTable.Loader
SeizenTable.Loader
Loading overlay component for composable UI.Props:
loading?: boolean(default:true)children?: React.ReactNode- Custom loader component
Plugin Slots
When using<SeizenTable>, all plugin slots are automatically rendered:
- Side Panels (left/right) -
SeizenTablePlugins.SidePanel - Header Slot -
SeizenTablePlugins.Header - Footer Slot -
SeizenTablePlugins.Footer - Inline Row Slots - Rendered between table rows
- Cell Slots - Rendered in table cells
Styling
Seizen Table uses CSS Variables for theming. Override these in your stylesheet:Type Parameters
The type of your row data, inherited from the table instance.
Related Types
See Core Types for:SeizenTableProps<TData>PaginateOptionsLoaderProps- Component props for compound components
Examples
Basic Table
Simple table with default settings
Remote Data
Server-side pagination with loading states
Custom Layout
Using compound components for custom layouts
Theming
Customizing table appearance with CSS variables