FieldSeparator() — ui Function Reference
Architecture documentation for the FieldSeparator() function in field.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD c4c6545c_4abd_bcb9_3178_7c0dceb1be0b["FieldSeparator()"] 56c854de_a6cd_224b_acad_3c45826d8f94["field.tsx"] c4c6545c_4abd_bcb9_3178_7c0dceb1be0b -->|defined in| 56c854de_a6cd_224b_acad_3c45826d8f94 style c4c6545c_4abd_bcb9_3178_7c0dceb1be0b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/ui/field.tsx lines 156–184
function FieldSeparator({
children,
className,
...props
}: React.ComponentProps<"div"> & {
children?: React.ReactNode
}) {
return (
<div
data-slot="field-separator"
data-content={!!children}
className={cn(
"relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
className
)}
{...props}
>
<Separator className="absolute inset-0 top-1/2" />
{children && (
<span
className="bg-background text-muted-foreground relative mx-auto block w-fit px-2"
data-slot="field-separator-content"
>
{children}
</span>
)}
</div>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does FieldSeparator() do?
FieldSeparator() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/field.tsx.
Where is FieldSeparator() defined?
FieldSeparator() is defined in apps/v4/registry/new-york-v4/ui/field.tsx at line 156.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free