import React from 'react'; import { Screen, View, Text } from '@idealyst/components'; import Image from '../Image'; export const ImageExamples: React.FC = () => { return ( Image Examples Basic Image Random placeholder image Object Fit Variants Cover (default) Cover example Contain Contain example Fill Fill example Aspect Ratio 16:9 Aspect Ratio 16:9 aspect ratio 1:1 Square Square aspect ratio Border Radius Rounded (8px) Rounded corners Very Rounded (24px) Very rounded corners Circle (50%) Circle Lazy Loading Images load as they scroll into view {[1, 2, 3, 4, 5].map((i) => ( {`Lazy ))} With Custom Placeholder Custom placeholder Loading custom image... } /> Error Handling Image with broken URL shows fallback Broken image ❌ Failed to load image } /> Responsive Width Responsive image ); }; export default ImageExamples;