Skip to content

Commit

Permalink
doc: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Nov 6, 2024
1 parent 0735678 commit 4dae3f1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ This is a simple HTMX element that can be used to display toasts in your web app
info-class="alert-info" warn-class="alert-warning"></htmx-toasts>
```

## Attributes

- `timeout` - The time in milliseconds that the toast will be displayed.
- `error-class` - The class to apply to the toast when it is an error.
- `info-class` - The class to apply to the toast when it is an info message.
- `warn-class` - The class to apply to the toast when it is a warning.

## Installation

```bash
Expand All @@ -30,8 +37,6 @@ npm install @htmx/template-element
<script src="https://unpkg.com/@htmx/htmx-toasts@latest/dist/index.js" type="module"></script>
```

```bash

## License

[MIT](/LICENSE)

0 comments on commit 4dae3f1

Please sign in to comment.