tailwind-mobile-hover

1.0.0 • Public • Published

Mobile Hover Tailwind Plugin

Tailwind plugin to fix hover styles on touch screens.

Usage

Add tailwind-mobile-hover to your plugins in tailwind.config.cjs:

/** @type {import('tailwindcss').Config} */
module.exports = {
  plugins: [
    require("tailwind-mobile-hover"),
  ],
};

Now when you use hover: modifier it will work the same on desktop devices, but will become active: on touch devices to avoid the hover state being "stuck".

/tailwind-mobile-hover/

    Package Sidebar

    Install

    npm i tailwind-mobile-hover

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    1.53 kB

    Total Files

    3

    Last publish

    Collaborators

    • azarattum