Home > widget-integration > RangeFilterValue

RangeFilterValue type

Range filter value for price and other numeric range filters.

Used for filters that have minimum and maximum numeric bounds, such as price ranges or other continuous numeric values.

Signature:

export type RangeFilterValue = BaseFilterValue & {
	min: number;
	max: number;
};

References: BaseFilterValue

Example

const priceRange: RangeFilterValue = {
  min: 0,
  max: 500,
  doc_count: 123
};