@bedard/tailwindcss-dialogs
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

@bedard/tailwindcss-dialogs

Build NPM License

Tailwind CSS utilities for styling and animating dialog elements.

View sandbox →

Installation

First, install the package from NPM.

npm install --save-dev @bedard/tailwindcss-dialogs

Next, add the following to your tailwind.config.js file.

import dialogs from '@bedard/tailwindcss-dialogs'

export default {
  plugins: [
    dialogs
  ]
}

Basic usage

This plugin provides one utility class, and three variant utilities.

  1. The allow-discrete class enables entry / exit transitions
  2. backdrop targets a dialog's backdrop pseudo element
  3. open targets the the open state
  4. from targets a dialog's starting-style

License

MIT

Copyright (c) 2024-present, Scott Bedard

/@bedard/tailwindcss-dialogs/

    Package Sidebar

    Install

    npm i @bedard/tailwindcss-dialogs

    Weekly Downloads

    6

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    83.9 kB

    Total Files

    24

    Last publish

    Collaborators

    • scottbedard