FilterClear
▸ FilterClear(props): null | ReactElement<any, string | JSXElementConstructor<any>>
Action that clears both Filter value and UI Select value
Parameters
| Name | Type |
|---|---|
props | PopoverDismissProps & RefAttributes<HTMLButtonElement (opens in a new tab)> |
Returns
null | ReactElement<any, string | JSXElementConstructor<any>>
Example
example.tsx
<FilterClear>Clear</FilterClear>import React from 'react' import { FilterClear } from '@vtex/shoreline-components' export default function App() { return (<> <FilterClear>Clear</FilterClear> </> )}
Defined in
node_modules/.pnpm/@types+react@18.2.14/node_modules/@types/react/ts5.0/index.d.ts:355