button-as-child.json — ui Source File
Architecture documentation for button-as-child.json, a json file in the ui codebase.
Entity Profile
Source Code
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "button-as-child",
"type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [
"button"
],
"files": [
{
"path": "examples/button-as-child.tsx",
"content": "import Link from \"next/link\"\n\nimport { Button } from \"@/registry/new-york/ui/button\"\n\nexport default function ButtonAsChild() {\n return (\n <Button asChild>\n <Link href=\"/login\">Login</Link>\n </Button>\n )\n}\n",
"type": "registry:example",
"target": ""
}
]
}
Source
Frequently Asked Questions
What does button-as-child.json do?
button-as-child.json is a source file in the ui codebase, written in json.
Where is button-as-child.json in the architecture?
button-as-child.json is located at apps/v4/public/r/styles/new-york/button-as-child.json (directory: apps/v4/public/r/styles/new-york).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free