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

Description

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;
  ...
}

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions