Dev Roar Lab API Documentation - v1.6.0
    Preparing search index...
    • Optimized Picture component for MDX content

      Automatically generates picture element with WebP/AVIF sources for optimal image delivery with fallback support.

      Parameters

      • props: {
            src: string;
            alt: string;
            width?: number;
            height?: number;
            className?: string;
        }

        Image props with src, alt, width, height

      Returns Element

      Picture element with multiple format sources

      <OptimizedImage
      src="/images/example.png"
      alt="Example image"
      width={400}
      height={300}
      />