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

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