AvatarBadge() — ui Function Reference
Architecture documentation for the AvatarBadge() function in avatar.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 8c9fc6e7_5a53_f4d9_9a11_3546d21d23c1["AvatarBadge()"] eefac934_0c5d_4afb_2430_f8162f214291["avatar.tsx"] 8c9fc6e7_5a53_f4d9_9a11_3546d21d23c1 -->|defined in| eefac934_0c5d_4afb_2430_f8162f214291 style 8c9fc6e7_5a53_f4d9_9a11_3546d21d23c1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui-rtl/avatar.tsx lines 59–73
function AvatarBadge({ className, ...props }: React.ComponentProps<"span">) {
return (
<span
data-slot="avatar-badge"
className={cn(
"bg-primary text-primary-foreground ring-background absolute end-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color 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/examples/radix/ui-rtl/avatar.tsx.
Where is AvatarBadge() defined?
AvatarBadge() is defined in apps/v4/examples/radix/ui-rtl/avatar.tsx at line 59.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free