Home > widget-integration > RatingFilterValue
RatingFilterValue type
Rating filter value for star rating filters.
Represents a rating range (e.g., "4 stars and up") with numeric bounds. Typically used with review integrations like Reviews.io.
Signature:
export type RatingFilterValue = BaseFilterValue & {
key: number;
from: number;
to: number;
label: string;
};
References: BaseFilterValue
Example
const fourStarsAndUp: RatingFilterValue = {
key: 4,
from: 4,
to: 5,
label: '4 stars & up',
doc_count: 87
};