✨ Functional classes
See original GitHub issueDescription
It will be very useful if master-css
can allow passing parameters to custom classes.
For example
Style.extend('classes',
{
btn: (size,blue) => `font:${size}rem text:center h:40 bg:${blue}`
},
);
<div class="btn(1,blue)">
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Classes - JavaScript - MDN Web Docs
Classes are in fact "special functions", and just as you can define function expressions and function declarations, the class syntax has two ...
Read more >BetterGymBrentwood on Instagram: “✨ FUNCTIONAL ZONE ...
46 Likes, 3 Comments - BetterGymBrentwood (@bettergymbrentwood) on Instagram: “✨ FUNCTIONAL ZONE CLASSES ✨ Monday 06:45 HIIT with Franqui Wednesday 12:45 ...
Read more >barre3 - ✨Our classes are filled with functional, dynamic... | Facebook
✨ Our classes are filled with functional, dynamic movements that support your body. You are free to add more resistance to create balance...
Read more >barre3 - ✨Our classes are filled with functional, dynamic movements ...
✨ Our classes are filled with functional, dynamic movements that support your body. You are free to add more resistance to create balance...
Read more >FUNctional fitness ✨⠀ ⠀ 🔹 45 minute HIIT circuit classes that ...
FUNctional fitness ✨⠀ ⠀ 🔹 45 minute HIIT circuit classes that never repeat!⠀ ⠀ 🔹 No mirrors | No egos | No worries...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The feature was on our internal R&D list a long time ago. 😎
@bhvngt The feature will not be implemented at this time, but it’ll definitely be. We still need to do more investigations and practical applications internally, probably in the later stage of v2.