Scrollbar styling support #9915
Replies: 5 comments 6 replies
-
I don't want to use plugin for this , can you tell me how I can add scrollbar property to my tailwind project . More specifically I want to hide my scrollbar but I am unable to find a solution . |
Beta Was this translation helpful? Give feedback.
-
See https://github.com/lukewarlow/tailwind-scrollbar-utilities for an alternative plugin that's focussed on the standard CSS properties scrollbar-color and scrollbar-width. (With a fallback to ensure hiding scrollbars works in all browsers) These properties are supported inside Firefox and Chrome (from 121). |
Beta Was this translation helpful? Give feedback.
-
What about having tailwind classes for scrollbar color, scrollbar bg color and width? @adamwathan would you accept a PR in this direction? |
Beta Was this translation helpful? Give feedback.
-
@adamwathan ping on this. It became official even in Chrome: https://developer.chrome.com/docs/css-ui/scrollbar-styling |
Beta Was this translation helpful? Give feedback.
-
The discussion has been going on for 2 years, 150k people download the plugin, but they still haven't added it. Sadly |
Beta Was this translation helpful? Give feedback.
-
This is not an issue - more of a recommendation
By default, TailwindCSS doesn't allow for custom scrollbars / styling.
There's currently a plugin on npm called tailwind-scrollbar
Even Tailwind's website uses custom scrollbars in the documentation - it would be great to add scrollbar styling natively instead of having to use plugins or adding custom CSS:
Beta Was this translation helpful? Give feedback.
All reactions