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 d75a6b0 commit 1755f9b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ This is a simple HTMX element that can be used to display toasts in your web app
<button type="button" class="btn btn-sm btn-outline" aria-label="Close" slot="close">Close</button>
</div>
</template>
<htmx-toasts timeout="3000" class="toast" role="status" aria-live="polite" error-class="alert-error"
info-class="alert-info" warn-class="alert-warning"></htmx-toasts>
<htmx-toasts
timeout="3000"
class="toast"
role="status"
aria-live="polite"
error-class="alert-error"
info-class="alert-info"
warn-class="alert-warning"></htmx-toasts>
```

## Attributes
Expand All @@ -30,7 +36,7 @@ This is a simple HTMX element that can be used to display toasts in your web app
## Installation

```bash
npm install @htmx/template-element
npm install @htmx/htmx-toast
```

Use as a module in your application:
Expand Down

0 comments on commit 1755f9b

Please sign in to comment.