button-as-child.tsx — ui Source File
Architecture documentation for button-as-child.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR bc203027_eaca_871f_98c2_2c9ced6caebd["button-as-child.tsx"] ba3d44f3_7b34_f9cc_6283_44817785c0df["link"] bc203027_eaca_871f_98c2_2c9ced6caebd --> ba3d44f3_7b34_f9cc_6283_44817785c0df d418ad18_b947_f4e5_6e4c_01100d7a63e4["button"] bc203027_eaca_871f_98c2_2c9ced6caebd --> d418ad18_b947_f4e5_6e4c_01100d7a63e4 style bc203027_eaca_871f_98c2_2c9ced6caebd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import Link from "next/link"
import { Button } from "@/registry/default/ui/button"
export default function ButtonAsChild() {
return (
<Button asChild>
<Link href="/login">Login</Link>
</Button>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- link
Source
Frequently Asked Questions
What does button-as-child.tsx do?
button-as-child.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 button-as-child.tsx?
button-as-child.tsx defines 1 function(s): ButtonAsChild.
What does button-as-child.tsx depend on?
button-as-child.tsx imports 2 module(s): button, link.
Where is button-as-child.tsx in the architecture?
button-as-child.tsx is located at deprecated/www/registry/default/examples/button-as-child.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free