Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Image has no maxWidth constraint #514

@jessemartin

Description

@jessemartin

Images should be constrainable by maxWidth.

A possible implementation could use a responsiveLayout enum Image prop:

enum ResponsiveLayout {
  MAX_WIDTH = "MAX_WIDTH", // image will be rendered at native size and scaled down to 100% width if necessary 
  FULL_WIDTH = "FULL_WIDTH", // image will be stretched to 100% width
}
interface ImageProps {
  responsiveLayout?: ResponsiveLayout;
  ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions