mui / pigment-css

Pigment CSS is a zero-runtime CSS-in-JS library that extracts the colocated styles to their own CSS files at build time.
MIT License
693 stars 36 forks source link

Support array in `sx` prop #46

Closed siriwatknp closed 4 months ago

siriwatknp commented 5 months ago

Summary

The sx prop should support array format to cover these cases:

Examples

No response

Motivation

To ease v5 to v6 migration and ensure feature parity with the current MUI system's sx.

Search keywords: array sx prop

brijeshb42 commented 4 months ago

This, though possible, is slightly tricky to implement, especially with all the conditionals. I have started working on it and I'll see where this leads to.