๐ŸŽจ

UI Library

A collection of beautiful, reusable React components and CSS snippets built with Tailwind CSS and Framer Motion.

Sliders

Controls for selecting a value from a continuous or discrete range.

Basic Slider

50%
Slider.tsxLanguage: tsx
import { useState } from 'react'; export function BasicSlider() { const [value, setValue] = useState(50); return ( <div className="w-full max-w-sm"> <div className="flex justify-between mb-2"> <label className="text-sm font-medium text-foreground">Volume</label> <span className="text-sm font-medium text-muted">{value}%</span> </div> <input type="range" min="0" max="100" value={value} onChange={(e) => setValue(Number(e.target.value))} className="w-full h-2 bg-surface border border-border rounded-lg appearance-none cursor-pointer accent-accent" /> </div> ); }