Number with a slider
A number box with a slider along its bottom edge.
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 { useState } from 'react';
import { NumberInput, Slider } from '@mantine/core';
import classes from './SliderInput.module.css';
export function SliderInput() {
const [value, setValue] = useState<number | string>(2200);
return (
<div className={classes.wrapper}>
<NumberInput
value={value}
onChange={setValue}
label="Your daily kcal consumption"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.