ButtonAsChild() — ui Function Reference
Architecture documentation for the ButtonAsChild() function in button-as-child.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 4c6b6d57_268a_8b05_9c22_6e6d5b9e73ee["ButtonAsChild()"] c091f66f_0f98_46a3_19e0_1276fa429518["button-as-child.tsx"] 4c6b6d57_268a_8b05_9c22_6e6d5b9e73ee -->|defined in| c091f66f_0f98_46a3_19e0_1276fa429518 style 4c6b6d57_268a_8b05_9c22_6e6d5b9e73ee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/examples/button-as-child.tsx lines 5–11
export default function ButtonAsChild() {
return (
<Button asChild>
<Link href="/login">Login</Link>
</Button>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ButtonAsChild() do?
ButtonAsChild() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/examples/button-as-child.tsx.
Where is ButtonAsChild() defined?
ButtonAsChild() is defined in apps/v4/registry/new-york-v4/examples/button-as-child.tsx at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free