Components
FilterProvider
Code

FilterProvider

FilterProvider(props): Element

Provides context to Filter

Parameters

NameType
propsFilterProviderProps

Returns

Element

Example

example.tsx
<FilterProvider>
  <FilterTrigger>...</FilterTrigger>
  <FilterPopover>...</FilterPopover>
</FilterProvider>
import React from 'react'
import { FilterProvider, FilterTrigger, FilterPopover } from '@vtex/shoreline-components'

export default function App() {
return (<>
<FilterProvider>
<FilterTrigger>...</FilterTrigger>
<FilterPopover>...</FilterPopover>
</FilterProvider>
</>
)}

Defined in

packages/components/src/filter/filter-provider.tsx:17 (opens in a new tab)