ComponentsFilterFilterTrigger

FilterTrigger

Filters represent criteria that users can choose to narrow down a Collection. They can include single or multiple selection.

<FilterProvider>
  <FilterTrigger>Open</FilterTrigger>
</FilterProvider>

Required props

label

Filter label

type
string
default
null

Optional props

value

Filter value

type
string
string[]
default
null

setValue

Callback to set the filter value

type
React.Dispatch<React.SetStateAction<string>>
React.Dispatch<React.SetStateAction<string[]>>
default
null

defaultValue

Filter default value

type
string
string[]
default
null

searchValue

Whether the filter is searchable

type
string
default
null

setSearchValue

Callback to set the filter search value

type
React.Dispatch<React.SetStateAction<string>>
default
null

defaultSearchValue

Whether the filter is searchable by default

type
string
default
null

messages

Filter messages

type
{ apply: string; clear: string; }
default
null