| 1234567891011121314151617181920212223242526272829303132 |
- "use client"
- import * as React from "react"
- import { Separator as SeparatorPrimitive } from "@base-ui/react/separator"
- import { cn } from "@/lib/utils/client"
- const Separator = React.forwardRef<
- HTMLDivElement,
- React.ComponentPropsWithoutRef<typeof SeparatorPrimitive> & {
- orientation?: "horizontal" | "vertical"
- decorative?: boolean
- }
- >(
- (
- { className, orientation = "horizontal", decorative: _decorative, ...props },
- ref
- ) => (
- <SeparatorPrimitive
- ref={ref}
- className={cn(
- "shrink-0 bg-border",
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
- className
- )}
- {...props}
- />
- )
- )
- Separator.displayName = "Separator"
- export { Separator }
|