Home / File/ separator.tsx — ui Source File

separator.tsx — ui Source File

Architecture documentation for separator.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  3783c311_b8e3_2756_27f0_5e4cbe141d86["separator.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  3783c311_b8e3_2756_27f0_5e4cbe141d86 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  ca79256c_1e1d_a85f_9114_05fddcad0c59["react-separator"]
  3783c311_b8e3_2756_27f0_5e4cbe141d86 --> ca79256c_1e1d_a85f_9114_05fddcad0c59
  79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"]
  3783c311_b8e3_2756_27f0_5e4cbe141d86 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81
  style 3783c311_b8e3_2756_27f0_5e4cbe141d86 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import * as SeparatorPrimitive from "@radix-ui/react-separator"

import { cn } from "@/lib/utils"

const Separator = React.forwardRef<
  React.ElementRef<typeof SeparatorPrimitive.Root>,
  React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
>(
  (
    { className, orientation = "horizontal", decorative = true, ...props },
    ref
  ) => (
    <SeparatorPrimitive.Root
      ref={ref}
      decorative={decorative}
      orientation={orientation}
      className={cn(
        "shrink-0 bg-border",
        orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
        className
      )}
      {...props}
    />
  )
)
Separator.displayName = SeparatorPrimitive.Root.displayName

export { Separator }

Subdomains

Functions

Dependencies

  • react
  • react-separator
  • utils

Frequently Asked Questions

What does separator.tsx do?
separator.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in separator.tsx?
separator.tsx defines 1 function(s): Separator.
What does separator.tsx depend on?
separator.tsx imports 3 module(s): react, react-separator, utils.
Where is separator.tsx in the architecture?
separator.tsx is located at deprecated/www/registry/default/ui/separator.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/ui).

Analyze Your Own Codebase

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

Try Supermodel Free