Closed MikeLockz closed 5 years ago
If the Image component extended an <image>
element we would not have to use a padding hack to maintain aspect ratio. The image would honor the height: auto
style property.
Make it similar to the priceline Image component.
Is your feature request related to a problem? Please describe. There is no way to use the Image component responsively.
Describe the solution you'd like Add an optional
responsive
prop to the Image component which will maintain the aspect ratio of the Image component as the container element grows/shrinks.Describe alternatives you've considered No other work arounds exist.