snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
17
apps/v4/registry/new-york-v4/examples/slider-demo.tsx
Normal file
17
apps/v4/registry/new-york-v4/examples/slider-demo.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { cn } from "cn"
|
||||
|
||||
import { Slider } from "@/registry/new-york-v4/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}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user