MCPcopy Create free account
hub / github.com/R44VC0RP/opencode.cafe / Separator

Function Separator

components/ui/separator.tsx:8–27  ·  view source on GitHub ↗
({
  className,
  orientation = "horizontal",
  decorative = true,
  ...props
}: React.ComponentProps<typeof SeparatorPrimitive.Root>)

Source from the content-addressed store, hash-verified

6import { cn } from "@/lib/utils"
7
8function Separator({
9 className,
10 orientation = "horizontal",
11 decorative = true,
12 ...props
13}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
14 return (
15 <SeparatorPrimitive.Root
16 data-slot="separator"
17 decorative={decorative}
18 orientation={orientation}
19 className={cn(
20 "shrink-0 bg-[var(--color-border)]",
21 orientation === "horizontal" ? "h-px w-full" : "h-full w-px",
22 className
23 )}
24 {...props}
25 />
26 )
27}
28
29export { Separator }

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected