MCPcopy Create free account
hub / github.com/better-auth/examples / ImageFallback

Function ImageFallback

astro-example/src/components/ui/image.tsx:54–68  ·  view source on GitHub ↗
(
	props: PolymorphicProps<T, imageFallbackProps<T>>,
)

Source from the content-addressed store, hash-verified

52 };
53
54export const ImageFallback = <T extends ValidComponent = "span">(
55 props: PolymorphicProps<T, imageFallbackProps<T>>,
56) => {
57 const [local, rest] = splitProps(props as imageFallbackProps, ["class"]);
58
59 return (
60 <ImagePrimitive.Fallback
61 class={cn(
62 "flex h-full w-full items-center justify-center rounded-full bg-muted",
63 local.class,
64 )}
65 {...rest}
66 />
67 );
68};

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected