Tailwind CSS utilities for styling and animating dialog elements.
First, install the package from NPM.
npm install --save-dev @bedard/tailwindcss-dialogsNext, add the following to your tailwind.config.js file.
import dialogs from '@bedard/tailwindcss-dialogs'
export default {
plugins: [
dialogs
]
}This plugin provides one utility class, and three variant utilities.
- The
allow-discreteclass enables entry / exit transitions backdroptargets a dialog's backdrop pseudo elementopentargets the the open statefromtargets a dialog'sstarting-style
Copyright (c) 2024-present, Scott Bedard