Openstatus www.openstatus.dev
at 4c0f4c00a38753a5d0dfd7e7b7b7706dec6f1503 31 lines 775 B view raw
1"use client"; 2 3import * as SeparatorPrimitive from "@radix-ui/react-separator"; 4import * as React from "react"; 5 6import { cn } from "../lib/utils"; 7 8const Separator = React.forwardRef< 9 React.ElementRef<typeof SeparatorPrimitive.Root>, 10 React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> 11>( 12 ( 13 { className, orientation = "horizontal", decorative = true, ...props }, 14 ref, 15 ) => ( 16 <SeparatorPrimitive.Root 17 ref={ref} 18 decorative={decorative} 19 orientation={orientation} 20 className={cn( 21 "bg-border shrink-0", 22 orientation === "horizontal" ? "h-px w-full" : "h-full w-px", 23 className, 24 )} 25 {...props} 26 /> 27 ), 28); 29Separator.displayName = SeparatorPrimitive.Root.displayName; 30 31export { Separator };