unocss-preset-scrollbar-hide
v1.0.1
Published
Hide scrollbars, although the element can still be scrolled if the element's content overflows.
Downloads
2,396
Readme
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.
- same as tailwind-scrollbar-hide
Installation
Install the preset from npm:
# Using npm
npm install unocss-preset-scrollbar-hide
# Using Yarn
yarn add unocss-preset-scrollbar-hide
# Using pnpm
pnpm add unocss-preset-scrollbar-hide
Then add the plugin to your tailwind.config.js
file:
// unocss.config.ts
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>