MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / Avatar

Function Avatar

src/components/ui/avatar.tsx:8–22  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.ComponentProps<typeof AvatarPrimitive.Root>)

Source from the content-addressed store, hash-verified

6import { cn } from "@/lib/utils"
7
8function 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
24function AvatarImage({
25 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected