🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

tailwindcss-empty

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwindcss-empty

Tailwind plugin to generate variants for empty elements.

1.0.0
latest
Source
npm
Version published
Weekly downloads
40
21.21%
Maintainers
1
Weekly downloads
 
Created
Source

tailwindcss-empty

Dead simple Tailwind plugin that adds a variant for the :empty CSS pseudo-class.

Installation

npm i tailwindcss-empty

Usage

In your tailwind.js:

  modules: {
    // The plugin only generates classes when you explicitly
    // register the 'empty' state variant for a module
    display: ['responsive', 'empty'],
    // ...
  },

  plugins: [
    require('tailwindcss-empty')(),
    // ...
  ]

In your HTML:

<!-- This span will be displayed normally. -->
<span class="errors empty:hidden">Whoops!</span>

<!-- This one will be hidden. -->
<span class="errors empty:hidden"></span>

Keywords

tailwind

FAQs

Package last updated on 08 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts