Function
Avatar
({ className, ...props }: AvatarPrimitive.Root.Props)
Source from the content-addressed store, hash-verified
| 5 | import { cn } from "@/lib/utils"; |
| 6 | |
| 7 | function 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 | |
| 20 | function AvatarImage({ className, ...props }: AvatarPrimitive.Image.Props) { |
| 21 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected