From 1755f9b01db9d4689fda68d1f494a2f75723d125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20D=C3=B6ll?= <sebastian@katallaxie.dev> Date: Wed, 6 Nov 2024 13:24:49 +0100 Subject: [PATCH] doc: update README --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 505ab63..7c8640d 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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: