🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.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

1.0.0
Source
npm
Version published
Weekly downloads
5
-58.33%
Maintainers
1
Weekly downloads
 
Created
Source

Tailwind CSS Plugin - Scrollbar Variants

This plugin adds scrollbar variants


Features

The built in Scrollbar class

<div class="scrollbar-rounded">
  ...
<div>

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

Rounded scrollbar with x-axis margins

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

Rounded scrollbar with adjusted thumb opacity

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

Or get really crazy

Rounded scrollbar with adjusted background color and opacity (shorthand)

<div class="scrollbar-rounded 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 23 Jun 2021

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