MCPcopy Create free account
hub / github.com/arctic-cli/interface / Avatar

Function Avatar

packages/web/components/ui/avatar.tsx:7–18  ·  view source on GitHub ↗
({ className, ...props }: AvatarPrimitive.Root.Props)

Source from the content-addressed store, hash-verified

5import { cn } from "@/lib/utils";
6
7function Avatar({ className, ...props }: AvatarPrimitive.Root.Props) {
8 return (
9 <AvatarPrimitive.Root
10 className={cn(
11 "inline-flex size-8 shrink-0 select-none items-center justify-center overflow-hidden rounded-full bg-background align-middle font-medium text-xs",
12 className,
13 )}
14 data-slot="avatar"
15 {...props}
16 />
17 );
18}
19
20function AvatarImage({ className, ...props }: AvatarPrimitive.Image.Props) {
21 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected