Skip to main content

FacetValueSelector

A component for selecting facet values.

Example

Tsx
<FacetValueSelector onValueSelect={onValueSelectHandler} disabled={disabled} />
Signature
function FacetValueSelector(props: FacetValueSelectorProps): void

Parameters

props

A component for selecting facet values.

Signature
interface FacetValueSelectorProps {    onValueSelect: (value: FacetValue) => void;    disabled?: boolean;    placeholder?: string;    pageSize?: number;}

onValueSelect

property(value: FacetValue) => void

The function to call when a facet value is selected.

The value will have the following structure:

Ts
{    id: string;    name: string;    code: string;    facet: {        id: string;        name: string;        code: string;    };}

disabled

propertyboolean

Whether the selector is disabled.

placeholder

propertystring

The placeholder text for the selector.

pageSize

propertynumber
Default:4

The number of facet values to display per page.

Was this chapter helpful?
Report Issue
Edited Feb 2, 2026·Edit this page