Scrollbar Width

Class
Properties
scrollbar-auto
scrollbar-width: auto;
scrollbar-thin
scrollbar-width: thin;
scrollbar-none
scrollbar-width: none;

Usage

Single import

// tailwind.config.js
 
import { scrollbarWidth } from "tailwindcss-addons"
 
export default {
    plugins: [scrollbarWidth],
}

Multi import

// tailwind.config.js
 
import { allAddons } from "tailwindcss-addons"
 
export default {
    plugins: [
        ...allAddons({
            scrollbarWidth: false, // Enabled by default.
        }),
    ],
}
Return to top