Min/Max Range Filter

Price

to
About this component

Min/Max Range Filter

Paired number inputs for open-ended ranges: either side can stay empty, so users can filter by only a minimum or only a maximum.

Usage

The import and the props worth knowing about, in one place.

import { FilterRange } from "@/components/beste/component/filter-range";

<FilterRange
  label="Price"
  min={0}
  max={500}
  defaultValue={["25", ""]}   // 25 and up
  onChange={([min, max]) => console.log("range:", min, max)}
/>

Playground

Turn the props on the right; the snippet under them is what you would write to get what you see.

Price

to
Usage
import { FilterRange } from "@/components/beste/component/filter-range";

<FilterRange
  label="Price"
  className="w-64"
  defaultValue={["25",""]}
/>

Props

Read from the component's own type, so this cannot drift from what it accepts.

PropTypeDefaultDescription
labelstringOptional group heading rendered above the inputs
minnumberPlaceholder for the minimum input
maxnumberPlaceholder for the maximum input
value[string, string]Controlled raw input values as [min, max] strings; either side may be empty for an open-ended range. Omit to let the component manage state.
defaultValue[string, string]Initial values when uncontrolled
onChange(value: [string, string]) => void
classNamestring

More Filter components

View all Filter

Price

$25$180

Range Slider Filter

Two-thumb range slider with live numeric readouts and a commit callback, built for price ranges.

Fit

32
14
21

Radio Filter

Single-select radio list with optional result counts. Clicking the active option clears the selection, so the filter is always escapable.

Rating

Rating Filter

Star rows for minimum-rating filtering in the familiar n-and-up pattern. Clicking the active row clears the selection.

Gender

Segmented Filter

Single-select segmented control built on Tabs for mutually exclusive choices like gender or condition. Clicking the active segment clears the selection.

Category

24
18
9
12

Checkbox Filter

Multi-select checkbox list with optional result counts. Works controlled or uncontrolled, designed for filter sidebars and toolbars.

Category

Select Filter

Single-select dropdown for long option lists that would crowd a sidebar. Supports a clear item, result counts, and a disabled state for dependent filters.