Tailwind has this really cool feature where you can tell "group" or "peer" tags to what class they're referring to when they're being nested.
Read even more epic features in this blog post
• https://tailwindcss.com/blog/tailwindcss-v3-2
Big W🔥
#Tailwind #Programming #CodeSnippets
@Dagmawi_Babi
Read even more epic features in this blog post
• https://tailwindcss.com/blog/tailwindcss-v3-2
Big W
#Tailwind #Programming #CodeSnippets
@Dagmawi_Babi
Please open Telegram to view this post
VIEW IN TELEGRAM
You can remove any and all scrollbars in tailwind using this tiny block of code.
Add the utilities layer in your global.css and use the no-scrollbar style anywhere
#Tailwind #Tips #CodeSnippets
@Dagmawi_Babi
@layer utilities {
/* Hide scrollbar for Chrome, Safari, and Opera */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge, and Firefox */
.no-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
}
Add the utilities layer in your global.css and use the no-scrollbar style anywhere
#Tailwind #Tips #CodeSnippets
@Dagmawi_Babi