label.tsx — ui Source File
Architecture documentation for label.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR e68169f8_aa3a_fbdb_be3f_50042a5ecb16["label.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] e68169f8_aa3a_fbdb_be3f_50042a5ecb16 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 8b55cc60_1010_8be1_ff88_b2b7f1a553f7["react-label"] e68169f8_aa3a_fbdb_be3f_50042a5ecb16 --> 8b55cc60_1010_8be1_ff88_b2b7f1a553f7 25383e8d_ca91_a50e_c3a8_5f228d02e1df["class-variance-authority"] e68169f8_aa3a_fbdb_be3f_50042a5ecb16 --> 25383e8d_ca91_a50e_c3a8_5f228d02e1df 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] e68169f8_aa3a_fbdb_be3f_50042a5ecb16 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 style e68169f8_aa3a_fbdb_be3f_50042a5ecb16 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const labelVariants = cva(
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
)
const Label = React.forwardRef<
React.ElementRef<typeof LabelPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
VariantProps<typeof labelVariants>
>(({ className, ...props }, ref) => (
<LabelPrimitive.Root
ref={ref}
className={cn(labelVariants(), className)}
{...props}
/>
))
Label.displayName = LabelPrimitive.Root.displayName
export { Label }
Domain
Subdomains
Functions
Dependencies
- class-variance-authority
- react
- react-label
- utils
Source
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 ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in label.tsx?
label.tsx defines 1 function(s): Label.
What does label.tsx depend on?
label.tsx imports 4 module(s): class-variance-authority, react, react-label, utils.
Where is label.tsx in the architecture?
label.tsx is located at deprecated/www/registry/new-york/ui/label.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free