tailwind-scrollbar
TypeScript icon, indicating that this package has built-in type declarations

4.0.2 • Public • Published

Scrollbar Plugin for Tailwind CSS

Tests Codacy Badge npm

tailwind-scrollbar is a plugin for Tailwind CSS that adds styling utilities for scrollbars with cross-browser support.

Motivation

There are currently two competing standards for styling scrollbars amongst browsers: the scrollbar-width and scrollbar-color properties used by Firefox and newer Chromium-based browsers, and the ::-webkit-scrollbar family of pseudoelements used by everything else. This plugin defines a single API for configuring both standards at once from within Tailwind.

Installation

  1. Add the package to your project
# npm
npm install --save-dev tailwind-scrollbar
# yarn
yarn add -D tailwind-scrollbar
# pnpm
pnpm add -D tailwind-scrollbar
  1. Add the plugin to your Tailwind config
@import 'tailwindcss';

/* ... */

@plugin 'tailwind-scrollbar';

Usage

See the documentation.

License

This project is licensed under the MIT License.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.0.233,776latest
4.0.0-beta.0904next

Version History

VersionDownloads (Last 7 Days)Published
4.0.233,776
4.0.114,667
4.0.08,297
4.0.0-beta.0904
3.1.0199,515
3.1.0-rc.0270
3.0.58,565
3.0.43,345
3.0.31,280
3.0.241
3.0.1287
3.0.03,463
2.1.014,456
2.1.0-preview.083
2.0.16,869
2.0.022
1.3.24,930
1.3.11,842
1.3.034
1.2.43
1.0.20
1.2.36
1.2.23
1.2.10
1.2.02
1.1.23
1.0.14
1.0.04

Package Sidebar

Install

npm i tailwind-scrollbar

Weekly Downloads

302,671

Version

4.0.2

License

MIT

Unpacked Size

15.9 kB

Total Files

13

Last publish

Collaborators

  • adoxography