FilterPanel
Installation
import {FilterPanel} from 'uxp/components';Examples
<FilterPanel
enableClear={inputValue?.length > 0 || selected != null}
onClear={() => { setInputValue(""); setSelected(null) }} >
<FormField className="no-padding mb-only">
<Label>Sort By</Label>
<Select
selected={selected}
options={[
{ label: "Name", value: "op-1" },
{ label: "Date", value: "op-2" },
]}
onChange={(value) => { setSelected(value) }}
placeholder=" -- select --"
isValid={selected ? selected?.length > 0 : null}
/>
</FormField>
</FilterPanel>Properties
Name
Type
Description
onOpen
type
onClose
type
onClear
type
fillContainer
type
className
type
enableClear
type
Last updated