FilterProvider
Provides context to Filter
<FilterProvider> <FilterTrigger>...</FilterTrigger> <FilterPopover>...</FilterPopover> </FilterProvider>
Parameters
props
- Type:
@vtex/shoreline-components.FilterProviderProps
Props
children
- Type:
@types/react.React.ReactNode
defaultOpen
(optional)
- Type:
boolean
defaultSearchValue
(optional)
- Type:
string
defaultValue
(optional)
- Type:
string | string[]
open
(optional)
- Type:
boolean
searchValue
(optional)
- Type:
string
setOpen
(optional)
- Type:
@types/react.React.Dispatch<@types/react.React.SetStateAction<boolean>>
setSearchValue
(optional)
- Type:
@types/react.React.Dispatch<@types/react.React.SetStateAction<string>>
setValue
(optional)
- Type:
@types/react.React.Dispatch<@types/react.React.SetStateAction<string>> | @types/react.React.Dispatch<@types/react.React.SetStateAction<string[]>>
value
(optional)
- Type:
string | string[]