Skip to main content

Slider

A single-thumb slider built on the Radix Slider primitive, with a visible label and a visible value readout.

This is a function exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import { Slider } from "@mapcairn/map";

function Slider(input: SliderProps): JSX.Element;

Description​

Radix provides the keyboard model (arrows, Home, End, PageUp and PageDown). The thumb is a 24px circle inside a 44px hit area. The value text is also exposed as aria-valuetext, so assistive technology hears the formatted value rather than the raw number.

Parameters​

  • { label, min, max, step, value, onValueChange, formatValue, disabled, className, "data-testid": testId, }
  • input (SliderProps)

Returns​

JSX.Element

See also​

Source: packages/map/src/ui/Slider/Slider.tsx:57