/*
https://github.com/tailwindlabs/tailwindcss/discussions/2394
https://github.com/tailwindlabs/tailwindcss/pull/5732
*/
@layer utilities {
/* Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
}
<div className="no-scrollbar overflow-y-auto">
// Using npm
npm install tailwind-scrollbar-hide
// Using Yarn
yarn add tailwind-scrollbar-hide
// Using pnpm
pnpm add tailwind-scrollbar-hide
// then add class
scrollbar-hide -> done ❤️
// tailwind.config.js, you have to add it as plugin
module.exports = {
theme: {
// ...
},
plugins: [
require('tailwind-scrollbar-hide')
// ...
]
}
Code Example |
---|
Css :: add glow to image css |
Css :: tablet screen size css |
Css :: how to hide scrollbar css |
Css :: mat-progress-bar style without app-theme |
Css :: vertical text |
Css :: puntos suspensivos css |
Css :: image color css |
Css :: font smoothing |
Css :: How to prevent anchor links from scrolling behind a sticky header with one line of CSS |
Css :: center nav bar css |
Css :: css box-shadow |
Css :: align items in span to center |
Css :: limit text size |
Css :: css display div horizontally |
Css :: text align left in span |
Css :: how to get font awesome outline |
Css :: onclick url |
Css :: css checked |
Css :: css all except last |
Css :: import image css |
Css :: css ganzer button anklickbar |
Css :: dotted underline css |
Css :: secondline ellipsis |
Css :: css selector not checked |
Css :: update arch linux |
Css :: hide input border on focus |
Css :: css units |
Css :: html watermark background |
Css :: bulma capitalized |
Css :: css put span on new line |