Home / Function/ AvatarWithBadge() — ui Function Reference

AvatarWithBadge() — ui Function Reference

Architecture documentation for the AvatarWithBadge() function in avatar-badge.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  22c8f225_75ce_6287_6508_5d35a11931d0["AvatarWithBadge()"]
  2f95638a_b1e0_03fc_330b_9ea327b250eb["avatar-badge.tsx"]
  22c8f225_75ce_6287_6508_5d35a11931d0 -->|defined in| 2f95638a_b1e0_03fc_330b_9ea327b250eb
  style 22c8f225_75ce_6287_6508_5d35a11931d0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/avatar-badge.tsx lines 8–16

export function AvatarWithBadge() {
  return (
    <Avatar>
      <AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
      <AvatarFallback>CN</AvatarFallback>
      <AvatarBadge className="bg-green-600 dark:bg-green-800" />
    </Avatar>
  )
}

Subdomains

Frequently Asked Questions

What does AvatarWithBadge() do?
AvatarWithBadge() is a function in the ui codebase, defined in apps/v4/examples/base/avatar-badge.tsx.
Where is AvatarWithBadge() defined?
AvatarWithBadge() is defined in apps/v4/examples/base/avatar-badge.tsx at line 8.

Analyze Your Own Codebase

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

Try Supermodel Free