Apply tailwindcss classes to child elements through parent
HTML-код
- Опубликовано: 31 май 2024
- Tip on how you can apply style to child elements through the parent instead of adding classes to each child element.
In this video we'll build a stacked avatars list.
Code
play.tailwindcss.com/Mkhi9m9Gws
0:00 - preview
0:13 - tailus logo intro
0:15 - comon use
01:48 - duplicating avatars preview
01:51 - duplicating avatars code
01:53 - Apply tailwindcss classes to children through parent element
02:50 - Final result - Наука
Make more such content please ❣️❣️❣️❣️
We are back now 😉
Can't wait to use this in our next components :)
What do you think about ??
didn't think that this could be done using tailwind css only, mostly I write my own CSS to achieve this kinda things 😁😁, i'll give it a shot
thanks 🔥🔥🔥🔥
TailwindCSS is just a plain CSS with more features
Me after seeing this 🎉🎉🎉🥳
The best is yet to come !