Function
Avatar
({
className,
...props
}: React.ComponentProps<typeof AvatarPrimitive.Root>)
Source from the content-addressed store, hash-verified
| 6 | import { cn } from "@/lib/utils" |
| 7 | |
| 8 | function Avatar({ |
| 9 | className, |
| 10 | ...props |
| 11 | }: React.ComponentProps<typeof AvatarPrimitive.Root>) { |
| 12 | return ( |
| 13 | <AvatarPrimitive.Root |
| 14 | data-slot="avatar" |
| 15 | className={cn( |
| 16 | "relative flex size-8 shrink-0 overflow-hidden rounded-full", |
| 17 | className |
| 18 | )} |
| 19 | {...props} |
| 20 | /> |
| 21 | ) |
| 22 | } |
| 23 | |
| 24 | function AvatarImage({ |
| 25 | className, |
Callers
nothing calls this directly
Tested by
no test coverage detected