Sliders with icon handles
A slider and a range slider whose handles are heart icons.
Add it to your project
Or install the packages yourselfTerminal
npm install @mantine/core @tabler/icons-react
First time with Mantine UI? Set it up once.
The code
import { IconHeart, IconHeartBroken } from '@tabler/icons-react';
import { RangeSlider, Slider } from '@mantine/core';
const styles = { thumb: { borderWidth: 2, height: 26, width: 26, padding: 3 } };
export function SliderIcon() {
return (
<>
<Slider
thumbChildren={<IconHeart size={16} stroke={1.5} />}
color="red"
label={null}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.