🚀 Socket Launch Week 🚀 Day 4: Introducing Historical Analytics.Learn More
Socket
Sign inDemoInstall
Socket

tailwind-scrollbar-variants

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwind-scrollbar-variants

Adds scrollbar variants

2.0.5
latest
Source
npm
Version published
Weekly downloads
22
-24.14%
Maintainers
1
Weekly downloads
 
Created
Source

Tailwind CSS Plugin - Scrollbar Variants

This plugin adds scrollbar variants


Features

The built in Overflow class

<div class="overflow-[<x|y>-]overlay">...</div>
PrefixPseudo-Element
scrollbar::-webkit-scrollbar
scrollbar-button::-webkit-scrollbar-button
scrollbar-thumb::-webkit-scrollbar-thumb
scrollbar-track::-webkit-scrollbar-track
scrollbar-track-piece::-webkit-scrollbar-track-piece
scrollbar-corner::-webkit-scrollbar-corner
scrollbar-resizer::-webkit-resizer

Examples

x-axis margins

<div class="scrollbar-track:mx-4">...</div>

Adjusted thumb opacity

<div class="scrollbar-thumb:bg-opacity-[0.1]">...</div>

Or get really crazy

Adjusted background color and opacity (shorthand)

<div class="scrollbar-thumb:bg-red-500/[0.26]">...</div>

Installation

Add it at the end of the plugins list in your tailwind.config.js file.

module.exports = {
  // ...
  plugins: [
    // ...
    require("tailwind-scrollbar-variant"),
  ],
};

FAQs

Package last updated on 27 Dec 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