Inputs

Slider

Ink range fill, thumb halo on hover/focus/drag, optional value tooltip and labelled marks.

Live example

Import

Each family is its own entry point, so a page loads only what it uses.

tsx
import { Slider } from "@nibapp/ui/components/slider";

Props

Each component's own props and variants, read from its source. What it also takes from an element or a Base UI part is named below its table.

Slider

Ink-filled slider. Pass an array value for a range. `tooltip="active"` floats the value over the thumb while hovered, focused or dragged.

PropTypeDefaultDescription
size"sm" | "md""md"
tooltip"never" | "active" | "always""never"
labelReactNode—

Visible label above the track.

showValuebooleanfalse

Show the formatted value(s) opposite the label.

formatValue(value: number) => string—

Formats values for the header, tooltip and screen readers. Defaults to `Intl.NumberFormat`.

thumbLabelsreadonly string[]—

Accessible names per thumb, e.g. `["Minimum", "Maximum"]`. A single thumb is named by the slider's `aria-label`; a range keeps it on the group.

marksreadonly SliderMark[]—

Snap points rendered as ticks (and labels) along the track.

Also takes the props of Base UI's Slider.Root, except children.