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
  4702ec1d_e7f7_b35a_d063_5dcb98ee8149["separator.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  4702ec1d_e7f7_b35a_d063_5dcb98ee8149 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  9c463da6_747b_38dc_586b_cbb4873070b1["radix-ui"]
  4702ec1d_e7f7_b35a_d063_5dcb98ee8149 --> 9c463da6_747b_38dc_586b_cbb4873070b1
  ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6["utils"]
  4702ec1d_e7f7_b35a_d063_5dcb98ee8149 --> ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6
  style 4702ec1d_e7f7_b35a_d063_5dcb98ee8149 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Separator as SeparatorPrimitive } from "radix-ui"

import { cn } from "@/registry/bases/radix/lib/utils"

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}
    />
  )
}

export { Separator }

Subdomains

Functions

Dependencies

  • radix-ui
  • react
  • 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): radix-ui, react, utils.
Where is separator.tsx in the architecture?
separator.tsx is located at apps/v4/registry/bases/radix/ui/separator.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/ui).

Analyze Your Own Codebase

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

Try Supermodel Free