AvatarBadge() — ui Function Reference
Architecture documentation for the AvatarBadge() function in avatar.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD c190e902_65d5_256d_3e0a_1145f7c91c96["AvatarBadge()"] 435f1c1f_968d_8b53_779a_3ad1a367863e["avatar.tsx"] c190e902_65d5_256d_3e0a_1145f7c91c96 -->|defined in| 435f1c1f_968d_8b53_779a_3ad1a367863e style c190e902_65d5_256d_3e0a_1145f7c91c96 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/ui/avatar.tsx lines 57–71
function AvatarBadge({ className, ...props }: React.ComponentProps<"span">) {
return (
<span
data-slot="avatar-badge"
className={cn(
"bg-primary text-primary-foreground ring-background absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full ring-2 select-none",
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2",
className
)}
{...props}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does AvatarBadge() do?
AvatarBadge() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/avatar.tsx.
Where is AvatarBadge() defined?
AvatarBadge() is defined in apps/v4/registry/new-york-v4/ui/avatar.tsx at line 57.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free