Home > widget-integration > SimpleFilterValue
SimpleFilterValue type
Simple filter value for standard filters (color, size, vendor, tags, etc.).
Used for most filter types where each option has a key and display label.
Signature:
export type SimpleFilterValue = BaseFilterValue & {
key: string;
label: string;
};
References: BaseFilterValue
Example
const colorFilter: SimpleFilterValue = {
key: 'red',
label: 'Red',
doc_count: 42
};