Function
ImageRoot
(
props: PolymorphicProps<T, imageRootProps<T>>,
)
Source from the content-addressed store, hash-verified
| 14 | }; |
| 15 | |
| 16 | export 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 | |
| 32 | type imageProps<T extends ValidComponent = "img"> = ImageImgProps<T> & { |
| 33 | class?: string; |
Callers
nothing calls this directly
Tested by
no test coverage detected