ConditionalSrcProps: {
    alt?: string;
    src: string;
    srcSet?: string;
} | {
    alt?: never;
    src?: undefined;
    srcSet?: never;
}

Type declaration

  • Optionalalt?: string

    Used in combination with src to provide an alt attribute for the rendered img element.

  • src: string

    The src attribute for the img element.

  • OptionalsrcSet?: string

    The srcSet attribute for the img element. Use this attribute for responsive image display.