Components
FilterProvider
Code

FilterProvider

FilterProvider(props): Element

Provides context to Filter

Parameters

NameType
propsFilterProviderProps

Returns

Element

Example

<FilterProvider>
  <FilterTrigger>...</FilterTrigger>
  <FilterPopover>...</FilterPopover>
</FilterProvider>
import React from 'react'
import { FilterProvider } from '@vtex/shoreline-components'
import { FilterTrigger } from '@vtex/shoreline-components'
import { 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)