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