MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / AvatarFallback

Function AvatarFallback

packages/web/src/components/ui/avatar.tsx:41–55  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.ComponentProps<typeof AvatarPrimitive.Fallback>)

Source from the content-addressed store, hash-verified

39}
40
41function AvatarFallback({
42 className,
43 ...props
44}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {
45 return (
46 <AvatarPrimitive.Fallback
47 data-slot="avatar-fallback"
48 className={cn(
49 "flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
50 className
51 )}
52 {...props}
53 />
54 )
55}
56
57function AvatarBadge({ className, ...props }: React.ComponentProps<"span">) {
58 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected