Home / File/ button-as-child.json — ui Source File

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",
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/new-york-v4/examples/button-as-child.tsx",
      "content": "import Link from \"next/link\"\n\nimport { Button } from \"@/registry/new-york-v4/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"
    }
  ]
}

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 deprecated/www/public/r/styles/new-york-v4/button-as-child.json (directory: deprecated/www/public/r/styles/new-york-v4).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free