GridToolbarQuickFilter API
API reference docs for the React GridToolbarQuickFilter component. Learn about the props, CSS, and other APIs of this exported module.
Component demos
Import
import { GridToolbarQuickFilter } from '@mui/x-data-grid/components';
// or
import { GridToolbarQuickFilter } from '@mui/x-data-grid';
// or
import { GridToolbarQuickFilter } from '@mui/x-data-grid-pro';
// or
import { GridToolbarQuickFilter } from '@mui/x-data-grid-premium';
Name | Type | Default | Description |
---|---|---|---|
debounceMs | number | 150 | The debounce time in milliseconds. |
quickFilterFormatter | func | (values: string[]) => values.join(' ') | Function responsible for formatting values of quick filter in a string when the model is modified Signature: function(values: Array
Returns: The string to display in the text field |
quickFilterParser | func | (searchText: string) => searchText .split(' ') .filter((word) => word !== '') | Function responsible for parsing text input in an array of independent values for quick filtering. Signature: function(input: string) => Array
Returns: The array of value on which quick filter is applied |
The
ref
is forwarded to the root element.These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.
Class name | Rule name | Description |
---|---|---|
.MuiGridToolbarQuickFilter-root | root | Styles applied to the root element. |
You can override the style of the component using one of these customization options:
- With a global class name.
- With a rule name as part of the component's
styleOverrides
property in a custom theme.