Function
ImageFallback
(
props: PolymorphicProps<T, imageFallbackProps<T>>,
)
Source from the content-addressed store, hash-verified
| 52 | }; |
| 53 | |
| 54 | export 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
Tested by
no test coverage detected