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

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.

File tsx ComponentRegistry ChartRegistry 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  c091f66f_0f98_46a3_19e0_1276fa429518["button-as-child.tsx"]
  ba3d44f3_7b34_f9cc_6283_44817785c0df["link"]
  c091f66f_0f98_46a3_19e0_1276fa429518 --> ba3d44f3_7b34_f9cc_6283_44817785c0df
  57e86e45_ac6e_7278_be08_9092724e8401["button"]
  c091f66f_0f98_46a3_19e0_1276fa429518 --> 57e86e45_ac6e_7278_be08_9092724e8401
  style c091f66f_0f98_46a3_19e0_1276fa429518 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import Link from "next/link"

import { Button } from "@/registry/new-york-v4/ui/button"

export default function ButtonAsChild() {
  return (
    <Button asChild>
      <Link href="/login">Login</Link>
    </Button>
  )
}

Subdomains

Functions

Dependencies

  • button
  • link

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 apps/v4/registry/new-york-v4/examples/button-as-child.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

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

Try Supermodel Free