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
  25534eaf_4678_769f_9670_1a64cb9021b4["FieldSeparator()"]
  3e9ca722_9978_f84a_9c4c_f8d4a9ad469e["field.tsx"]
  25534eaf_4678_769f_9670_1a64cb9021b4 -->|defined in| 3e9ca722_9978_f84a_9c4c_f8d4a9ad469e
  style 25534eaf_4678_769f_9670_1a64cb9021b4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/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/radix/ui/field.tsx.
Where is FieldSeparator() defined?
FieldSeparator() is defined in apps/v4/registry/bases/radix/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