@seed-design/lynx-react-image
v1.0.1
Published
Headless component built to implement [SEED Lynx Avatar](https://seed-design.io/lynx/components/avatar) and [SEED Lynx Image Frame](https://seed-design.io/lynx/components/image-frame). This is an internal utility, not intended for public usage.
Readme
@seed-design/lynx-react-image
Headless component built to implement SEED Lynx Avatar and SEED Lynx Image Frame. This is an internal utility, not intended for public usage.
Usage
import { Image } from "@seed-design/lynx-react-image";
export function ProductImage({ src }: { src: string }) {
return (
<Image.Root style={{ width: 160, height: 160, position: "relative" }}>
<Image.Content src={src} alt="Product photo" style={{ width: 160, height: 160 }} />
<Image.Fallback style={{ position: "absolute", top: 0, left: 0 }}>
<text>Photo unavailable</text>
</Image.Fallback>
</Image.Root>
);
}