Components
Loading preview...
An accessible slider component built on Base UI Slider with support for single value, range, vertical orientation, and custom styling.
npx shadcn@latest add https://21st.dev/r/coss.com/sliderimport { Slider, SliderValue } from "@/components/ui/component";
export default function Particle() {
return (
<div className="flex items-center justify-center w-full min-h-screen bg-background p-8">
<div className="w-full max-w-sm">
<Slider defaultValue={50}>
<div className="mb-2 flex items-center justify-between gap-1">
<label className="font-medium text-sm text-foreground">Opacity</label>
<SliderValue />
</div>
</Slider>
</div>
</div>
);
}