# DataGridSearchBoxProps (@salmonui/data-grid)

> The DataGridSearchBoxProps interface of @salmonui/data-grid.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridSearchBoxProps

```ts
import type { DataGridSearchBoxProps } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: interface

```ts
interface DataGridSearchBoxProps<Row = unknown> {
    api?: DataGridApi<Row> | null;
    debounce?: number;
    placeholder?: string;
    'aria-label'?: string;
    className?: string;
    style?: CSSProperties;
    tabIndex?: number;
    disabled?: boolean;
    title?: string | undefined;
    onBeforeSearch?: (event: DataGridSearchBoxSearchEvent) => void;
    onFocus?: () => void;
    dataAttributes?: Readonly<Record<string, string | number | undefined>>;
    hidden?: boolean | undefined;
}
```

Members (13):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `api` | `api?: DataGridApi<Row> \| null;` | optional | The grid to search when rendered outside its subtree. |
| `debounce` | `debounce?: number;` | optional | Delay before typed text applies, in ms. Default 0 (Enter always applies at once). |
| `placeholder` | `placeholder?: string;` | optional |  |
| `aria-label` | `'aria-label'?: string;` | optional | Accessible name of the search landmark. Default `localeText.searchLabel`. |
| `className` | `className?: string;` | optional |  |
| `style` | `style?: CSSProperties;` | optional |  |
| `tabIndex` | `tabIndex?: number;` | optional | Roving tab index from a host (the toolbar). |
| `disabled` | `disabled?: boolean;` | optional |  |
| `title` | `title?: string \| undefined;` | optional |  |
| `onBeforeSearch` | `onBeforeSearch?: (event: DataGridSearchBoxSearchEvent) => void;` | optional | Called before each search is applied; `event.preventDefault()` skips it (like grid before-events). |
| `onFocus` | `onFocus?: () => void;` | optional |  |
| `dataAttributes` | `dataAttributes?: Readonly<Record<string, string \| number \| undefined>>;` | optional | Extra attributes on the landmark (toolbar item hooks). |
| `hidden` | `hidden?: boolean \| undefined;` | optional |  |
