Home / Function/ FieldSeparator() — ui Function Reference

FieldSeparator() — ui Function Reference

Architecture documentation for the FieldSeparator() function in field.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  fb49cafb_6a74_7b87_cfb8_1633cefcba2e["FieldSeparator()"]
  7f790981_1f57_27c9_6405_8857e98ddfef["field.tsx"]
  fb49cafb_6a74_7b87_cfb8_1633cefcba2e -->|defined in| 7f790981_1f57_27c9_6405_8857e98ddfef
  style fb49cafb_6a74_7b87_cfb8_1633cefcba2e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/ui/field.tsx lines 138–163

function FieldSeparator({
  children,
  className,
  ...props
}: React.ComponentProps<"div"> & {
  children?: React.ReactNode
}) {
  return (
    <div
      data-slot="field-separator"
      data-content={!!children}
      className={cn("cn-field-separator relative", className)}
      {...props}
    >
      <Separator className="absolute inset-0 top-1/2" />
      {children && (
        <span
          className="cn-field-separator-content bg-background relative mx-auto block w-fit"
          data-slot="field-separator-content"
        >
          {children}
        </span>
      )}
    </div>
  )
}

Subdomains

Frequently Asked Questions

What does FieldSeparator() do?
FieldSeparator() is a function in the ui codebase, defined in apps/v4/registry/bases/base/ui/field.tsx.
Where is FieldSeparator() defined?
FieldSeparator() is defined in apps/v4/registry/bases/base/ui/field.tsx at line 138.

Analyze Your Own Codebase

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

Try Supermodel Free