mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
17 lines
372 B
TypeScript
17 lines
372 B
TypeScript
import { cn } from "@/lib/utils"
|
|
import { Slider } from "@/registry/default/ui/slider"
|
|
|
|
type SliderProps = React.ComponentProps<typeof Slider>
|
|
|
|
export default function SliderDemo({ className, ...props }: SliderProps) {
|
|
return (
|
|
<Slider
|
|
defaultValue={[50]}
|
|
max={100}
|
|
step={1}
|
|
className={cn("w-[60%]", className)}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|