From 03958b32622434c6db26bcc32ae82826a8efaa90 Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Fri, 13 Dec 2024 16:44:29 +0000 Subject: [PATCH] chore: add shadcn-ui/slider component --- src/components/ui/slider.tsx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/components/ui/slider.tsx diff --git a/src/components/ui/slider.tsx b/src/components/ui/slider.tsx new file mode 100644 index 0000000..6221e2b --- /dev/null +++ b/src/components/ui/slider.tsx @@ -0,0 +1,26 @@ +import * as React from "react" +import * as SliderPrimitive from "@radix-ui/react-slider" + +import { cn } from "@/lib/utils" + +const Slider = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + + + + + + +)) +Slider.displayName = SliderPrimitive.Root.displayName + +export { Slider }