Supports Hover

Class
Properties
supports-hover
@media (hover: hover)

Note: You can use this workaround instead of this plugin.

Usage

Single import

// tailwind.config.js | tailwind.config.ts

import { supportsHover } from "tailwindcss-addons"

export default {
    plugins: [supportsHover],
}

Multi import

// tailwind.config.js | tailwind.config.ts

import { allAddons } from "tailwindcss-addons"

export default {
    plugins: [
        ...allAddons({
            supportsHover: false, // Enabled by default
        }),
    ],
}
Return to top