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

Function ImageRoot

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

Source from the content-addressed store, hash-verified

14};
15
16export const ImageRoot = <T extends ValidComponent = "span">(
17 props: PolymorphicProps<T, imageRootProps<T>>,
18) => {
19 const [local, rest] = splitProps(props as imageRootProps, ["class"]);
20
21 return (
22 <ImagePrimitive
23 class={cn(
24 "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
25 local.class,
26 )}
27 {...rest}
28 />
29 );
30};
31
32type imageProps<T extends ValidComponent = "img"> = ImageImgProps<T> & {
33 class?: string;

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected