Home / Function/ Separator() — ui Function Reference

Separator() — ui Function Reference

Architecture documentation for the Separator() function in separator.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  c65b0ab8_6948_d679_5edb_37851481b32b["Separator()"]
  f9f5e878_70b0_92f4_7d59_770f2dc172f2["separator.tsx"]
  c65b0ab8_6948_d679_5edb_37851481b32b -->|defined in| f9f5e878_70b0_92f4_7d59_770f2dc172f2
  style c65b0ab8_6948_d679_5edb_37851481b32b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/separator.tsx lines 8–26

function Separator({
  className,
  orientation = "horizontal",
  decorative = true,
  ...props
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
  return (
    <SeparatorPrimitive.Root
      data-slot="separator"
      decorative={decorative}
      orientation={orientation}
      className={cn(
        "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does Separator() do?
Separator() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/separator.tsx.
Where is Separator() defined?
Separator() is defined in apps/v4/registry/new-york-v4/ui/separator.tsx at line 8.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free