Position Range Slider
Position Range Slider is a React and Tailwind CSS form component from UI Layouts, licensed MIT. Copy it and paste it into your project.
UI Layouts
MIT
forms
What it is
Position Range Slider is a React and Tailwind CSS form component from UI Layouts, licensed MIT. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Five free copies a month. No card.
No packages beyond the project baseline
Licence
This component comes from UI Layouts and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.
Position Range Slider
'use client';
import { DualRangeSlider } from '@/components/ui/slider';
import React, { useState } from 'react';
export default function PositionRangeSlider() {
const [celPer, setCelPer] = useState(70);
const [values, setValues] = useState([0, 100]);
return (
<>
<div className=' w-3/5 mx-auto space-y-20 py-20'>
<DualRangeSlider
label={() => <>$</>}
lableContenPos={'left'}
value={values}
onValueChange={setValues}
min={0}
max={100}
step={1}
/>
<DualRangeSlider
label={() => <>℃</>}
value={[celPer]}
labelPosition='bottom'
onValueChange={([celPer]) => celPer != null && setCelPer(celPer)}
min={0}
max={100}
step={1}
/>
</div>
</>
);
}