-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Allow emmet CSS shorthands in the sx prop #29734
Copy link
Copy link
Closed
Labels
scope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUIThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUItype: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.waiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.Waiting for upvotes. Open for community feedback and needs more interest to be worked on.
Metadata
Metadata
Assignees
Labels
scope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUIThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUItype: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.waiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.Waiting for upvotes. Open for community feedback and needs more interest to be worked on.
Duplicates
Latest version
Summary 💡
The
sxprop already allows us to usem,my,mx,mt,mb,ml,mr,p,py,px,pt,pb,pl,pras shorthands for margin and padding.Being able to use other emmet CSS shorthands would be great.
Examples 🌈
Would be similar to:
Motivation 🔦
I've been using emmet since I started coding, seeing the same kind of feature for margin of padding in MUI reminded me of how time saving it is, and could be here too if it's implemented.
I'd be happy to provide a PR for this if someone guides me to where the modifications should be made.