Responsiveness of Aspect and AspectImage components #1863
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
@theme-ui/components
I'm currently implementing a news list with an image in each item, and these images have 4:3 ratio in mobile devices and 16:9 ratio in desktop devices. Would it be possible or even make sense for the Aspect and AspectImage components to handle this kind of thing? I imagine an API like this:
Where each item in this array of ratios would be a definition of a breakpoint, exactly like responsiveness is handled in the sx property.
The text was updated successfully, but these errors were encountered: