tailwind-scrollbar
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "tailwind-scrollbar", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Tailwind plugin for styling scrollbars", | ||
@@ -5,0 +5,0 @@ "author": "Graham Still <graham@gstill.dev>", |
@@ -23,12 +23,10 @@ # Scrollbar Plugin for Tailwind CSS | ||
2. Add it to the plugins array of your Tailwind config | ||
2. Add the plugin to your Tailwind config | ||
```javascript | ||
module.exports = { | ||
// ... | ||
plugins: [ | ||
// ... | ||
require('tailwind-scrollbar'), | ||
], | ||
}; | ||
```css | ||
@import 'tailwindcss'; | ||
/* ... */ | ||
@plugin 'tailwind-scrollbar'; | ||
``` | ||
@@ -35,0 +33,0 @@ |
@@ -14,3 +14,3 @@ // TODO: Figure out why the linter is unhappy with this import | ||
module.exports = plugin.withOptions((options = {}) => tailwind => { | ||
let preferredStrategy = options.preferredStrategy ?? 'standard'; | ||
let preferredStrategy = options.preferredStrategy ?? options.preferredstrategy ?? 'standard'; | ||
@@ -17,0 +17,0 @@ if (preferredStrategy !== 'standard' && preferredStrategy !== 'pseudoelements') { |
15897
39