FilterOption
▸ FilterOption(props
): null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Filter Option
Parameters
Name | Type |
---|---|
props | FilterOptionProps & RefAttributes <HTMLDivElement (opens in a new tab)> |
Returns
null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Example
<Filter label="Label">
<FilterOption value="option">Option</FilterOption>
</Filter>
import React from 'react' import { Filter } from '@vtex/shoreline-components' import { FilterOption } from '@vtex/shoreline-components' export default function App() { return (<><Filter label="Label"> <FilterOption value="option">Option</FilterOption></Filter></>)}
Defined in
node_modules/.pnpm/@types+react@18.2.14/node_modules/@types/react/ts5.0/index.d.ts:355