Skip to content

Is it possible to have a switch to use <canvas> instead <img>? #61

@MeaningOfLights

Description

@MeaningOfLights

Hi,

I'm trying to find a lightbox that uses a <canvas> instead <img>, is this something that could be switched over relatively easily?

export type ImagesListItem = Omit<
    React.HTMLProps<HTMLImageElement>,
    'draggable' | 'onClick' | 'onDragStart' | 'ref'
> & { alt: string; loading?: 'auto' | 'eager' | 'lazy'; src: string };

The purpose is to eliminate the image's src in View Source and Chrome DevTools, I'm guessing the HTML5 element will have richer features and continued improvements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions