项目
在 GitHub 查看
adoxography/tailwind-scrollbar
关于
Tailwind CSS 的滚动条插件
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- +1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Scrollbar Plugin for Tailwind CSS
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
- 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
- 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.
探索相关项目
加载中…