Skip to content

Commit cb5790e

Browse files
authored
Create README.md
1 parent 318e705 commit cb5790e

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# `@bedard/tailwindcss-dialogs`
2+
3+
Tailwind CSS utilities for styling and animating dialog elements.
4+
5+
[View sandbox →](https://main--tailwindcss-dialogs.netlify.app/)
6+
7+
## Installation
8+
9+
First, install the package from NPM.
10+
11+
```sh
12+
npm install --save-dev @bedard/tailwindcss-dialogs
13+
```
14+
15+
Next, add the following to your `tailwind.config.js` file.
16+
17+
```js
18+
import dialogs from '@bedard/tailwindcss-dialogs'
19+
20+
export default {
21+
plugins: [
22+
dialogs
23+
]
24+
}
25+
```
26+
27+
## Basic usage
28+
29+
This plugin provides one utility class, and three variant utilities.
30+
31+
1. The [`allow-discrete`](https://developer.mozilla.org/en-US/docs/Web/CSS/transition-behavior#discrete_animation_behavior) class enables entry / exit transitions
32+
2. `backdrop` targets a dialog's backdrop pseudo element
33+
3. `open` targets the the open state
34+
4. `from` targets a dialog's [`starting-style`](https://developer.mozilla.org/en-US/docs/Web/CSS/@starting-style)
35+
36+
## License
37+
38+
[MIT](https://github.com/scottbedard/tailwindcss-dialogs/blob/master/LICENSE)
39+
40+
Copyright (c) 2024-present, Scott Bedard

0 commit comments

Comments
 (0)