Components
FilterClear
Code

FilterClear

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

Action that clears both Filter value and UI Select value

Parameters

NameType
propsPopoverDismissProps & 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