Components
FilterTrigger
Code

FilterTrigger

FilterTrigger(props): null | ReactElement<any, string | JSXElementConstructor<any>>

Triggers the Filter Popover box, also displays the Filter applied value

Parameters

NameType
propsPopoverTriggerProps & RefAttributes<HTMLButtonElement (opens in a new tab)>

Returns

null | ReactElement<any, string | JSXElementConstructor<any>>

Example

<FilterProvider>
  <FilterTrigger>Open</FilterTrigger>
</FilterProvider>
import React from 'react'
import { FilterProvider } from '@vtex/shoreline-components'
import { FilterTrigger } from '@vtex/shoreline-components'
export default function App() { return (<><FilterProvider>  <FilterTrigger>Open</FilterTrigger></FilterProvider></>)}

Defined in

node_modules/.pnpm/@types+react@18.2.14/node_modules/@types/react/ts5.0/index.d.ts:355