afterglow
uiavatarsource: ok · hit
Avatar
Initials in mono inside a bordered square.
npx shadcn add "https://afterglow.thebuilder.dk/r/avatar.json"free
Visual style
terminal-mono
Tags auto-generated by rules on 9/24/2026 — empty means no evidence, not lack of support.
Dependencies
Bundle weight · lightui-primitives@base-ui/react
Registry dependencies
@afterglow/theme
Files1 · source cached 10/9/2026, 6:09:10 AM
registry/terminal/ui/avatar.tsx
"use client";
import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar";
import { cn } from "@/lib/utils";
function Avatar({ className, ...props }: AvatarPrimitive.Root.Props) {
return (
<AvatarPrimitive.Root
className={cn(
"relative flex size-8 shrink-0 overflow-hidden rounded-none border border-line",
className
)}
data-slot="avatar"
{...props}
/>
);
}
function AvatarImage({ className, ...props }: AvatarPrimitive.Image.Props) {
return (
<AvatarPrimitive.Image
className={cn("aspect-square size-full", className)}
data-slot="avatar-image"
{...props}
/>
);
}
function AvatarFallback({
className,
...props
}: AvatarPrimitive.Fallback.Props) {
return (
<AvatarPrimitive.Fallback
className={cn(
"flex size-full items-center justify-center bg-secondary font-mono font-semibold text-2xs text-phosphor uppercase tracking-terminal-sm",
className
)}
data-slot="avatar-fallback"
{...props}
/>
);
}
export { Avatar, AvatarFallback, AvatarImage };