Range slider with labels
A two-handle slider with labels that show the values.
Add it to your project
Or install the packages yourselfTerminal
npm install @mantine/core
First time with Mantine UI? Set it up once.
The code
import { RangeSlider } from '@mantine/core';
import classes from './SliderLabel.module.css';
export function SliderLabel() {
return (
<RangeSlider
labelAlwaysOn
defaultValue={[20, 60]}
classNames={classes}
thumbFromLabel="Start value"
thumbToLabel="End value"
/>This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.