Home / File/ label.tsx — ui Source File

label.tsx — ui Source File

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

File tsx DocumentationAtlas SearchAPI 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  9a6fc430_05f9_5471_073b_98d7cfa9a8e9["label.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  9a6fc430_05f9_5471_073b_98d7cfa9a8e9 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  191e4a89_25e4_f7a3_d5fb_d71d101e0990["utils"]
  9a6fc430_05f9_5471_073b_98d7cfa9a8e9 --> 191e4a89_25e4_f7a3_d5fb_d71d101e0990
  9c463da6_747b_38dc_586b_cbb4873070b1["radix-ui"]
  9a6fc430_05f9_5471_073b_98d7cfa9a8e9 --> 9c463da6_747b_38dc_586b_cbb4873070b1
  style 9a6fc430_05f9_5471_073b_98d7cfa9a8e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { cn } from "@/examples/radix/lib/utils"
import { Label as LabelPrimitive } from "radix-ui"

function Label({
  className,
  ...props
}: React.ComponentProps<typeof LabelPrimitive.Root>) {
  return (
    <LabelPrimitive.Root
      data-slot="label"
      className={cn(
        "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
        className
      )}
      {...props}
    />
  )
}

export { Label }

Subdomains

Functions

Dependencies

  • radix-ui
  • react
  • utils

Frequently Asked Questions

What does label.tsx do?
label.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in label.tsx?
label.tsx defines 1 function(s): Label.
What does label.tsx depend on?
label.tsx imports 3 module(s): radix-ui, react, utils.
Where is label.tsx in the architecture?
label.tsx is located at apps/v4/examples/radix/ui-rtl/label.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/radix/ui-rtl).

Analyze Your Own Codebase

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

Try Supermodel Free