Separator() — ui Function Reference
Architecture documentation for the Separator() function in separator.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 8162f39a_2715_5428_943a_b9a5177e8afe["Separator()"] 309517b1_c357_3754_dea3_2248113d73de["separator.tsx"] 8162f39a_2715_5428_943a_b9a5177e8afe -->|defined in| 309517b1_c357_3754_dea3_2248113d73de style 8162f39a_2715_5428_943a_b9a5177e8afe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui-rtl/separator.tsx lines 7–25
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}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Separator() do?
Separator() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/separator.tsx.
Where is Separator() defined?
Separator() is defined in apps/v4/examples/radix/ui-rtl/separator.tsx at line 7.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free