MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / Separator

Function Separator

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected