Skip to main content

Slider

Form Controls
Stable
v1.0.0

Range slider for selecting numeric values or a range. Built on Radix Slider. Pass an array to value for range mode.

Quick Import
import { Slider } from "@cohere-ai/waypoint-ui/slider";

Live Preview

Loading Slider...

Props

NameTypeDefaultDescription
minnumber0Minimum value
maxnumber100Maximum value
stepnumber1Step increment
valuenumber[]-Controlled value(s) — array for range slider
defaultValuenumber[]-Default value(s)
onValueChangefunction-Callback on change
disabledbooleanfalseDisables the slider

Examples

Single Value Slider

Basic slider starting at 50

1
import { Slider } from '@cohere-ai/waypoint-ui/slider';
2
 
3
<Slider defaultValue={[50]} max={100} step={1} />

Range Slider

Two-handle range slider

1
import { Slider } from '@cohere-ai/waypoint-ui/slider';
2
 
3
<Slider defaultValue={[20, 80]} max={100} step={5} />

Found an Issue?

If you've encountered a bug or have feedback about the Slider component, please report it to our team. Your feedback helps us improve Waypoint.

Available for all users • Issue will be created in Linear

Was this page helpful?

Your feedback helps us improve our documentation.

Need Help?

Check out the Whitelabeling Playground to explore customization options or visit the Developer Guide for integration help.