unocss-preset-scrollbar-hide
UnoCSS preset for hide scrollbars, although the element can still be scrolled if the element's content overflows. Part of the UnoCSS Community Presets.


Live demo
Installation
Install the preset from npm:
npm install unocss-preset-scrollbar-hide
yarn add unocss-preset-scrollbar-hide
pnpm add unocss-preset-scrollbar-hide
Then add the plugin to your tailwind.config.js
file:
import { presetScrollbarHide } from 'unocss-preset-scrollbar-hide'
export default defineConfig({
presets: [
presetScrollbarHide()
],
})
Usage
Use in you template scrollbar-hide
for visual hiding scrollbar
<div class="w-4 scrollbar-hide">...</div>
License
MIT