Skip to content
LoidoltTheme 0.11.1
Svelte 5

Component

DataTableSearch

A search field bound to a data table — across every searchable column, or one `column`.

import { DataTableSearch } from '@loidolt/theme-svelte';

Example

Cut sheets
StockStatusLayers
Bracket 1Birch plyReady1
Coaster 1Mount boardIn review8
Sign 1CorkReady4
Enclosure 1AcrylicBlocked11
Panel 1Birch plyReady7

1–5 of 42

Notes

  • Debounced by 200ms; raise debounce for a server search. The field re-syncs when the table is reset or cleared elsewhere.

Props

Generated from the component source, so it cannot drift from the implementation.

DataTableSearch props
PropTypeDefaultNotes
table required DataTableState<T>—
boxed booleantrue
class string—
column string—Filter one column instead of searching them all.
debounce number200Milliseconds to wait after the last keystroke — worth raising for a server search.
label string'Search'Accessible name, when not wrapped in a Field.
ref bindableHTMLInputElement | nullnull

Plus the attributes of Omit<HTMLInputAttributes, 'value' | 'type'>, forwarded to the root element.