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 a5aeccf6_23d7_51b8_9c8d_4eb3f6f077eb["ButtonAsChild()"] bc203027_eaca_871f_98c2_2c9ced6caebd["button-as-child.tsx"] a5aeccf6_23d7_51b8_9c8d_4eb3f6f077eb -->|defined in| bc203027_eaca_871f_98c2_2c9ced6caebd style a5aeccf6_23d7_51b8_9c8d_4eb3f6f077eb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/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 deprecated/www/registry/default/examples/button-as-child.tsx.
Where is ButtonAsChild() defined?
ButtonAsChild() is defined in deprecated/www/registry/default/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