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
  cfb7d80d_6374_4c51_af48_60c3224181f9["Separator()"]
  4702ec1d_e7f7_b35a_d063_5dcb98ee8149["separator.tsx"]
  cfb7d80d_6374_4c51_af48_60c3224181f9 -->|defined in| 4702ec1d_e7f7_b35a_d063_5dcb98ee8149
  style cfb7d80d_6374_4c51_af48_60c3224181f9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/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-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does Separator() do?
Separator() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/separator.tsx.
Where is Separator() defined?
Separator() is defined in apps/v4/registry/bases/radix/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