Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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