🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

unocss-preset-scrollbar-hide

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unocss-preset-scrollbar-hide

Hide scrollbars, although the element can still be scrolled if the element's content overflows.

1.0.1
latest
Source
npm
Version published
Weekly downloads
270
-28.57%
Maintainers
1
Weekly downloads
 
Created
Source

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.

npm npm npm Dependents (via libraries.io) install size

unocss-preset-scrollbar-hide animation demo

Live demo

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>

License

MIT

Keywords

unocss

FAQs

Package last updated on 08 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts