The Alert Dialog component is identical to Dialog except for two small differences: we do not display a close button and we do not let the user close the dialog when clicking on the backdrop (no onclick attribute on the <dialog> or the <article> elements).
The component has the following HTML structure:
diff --git a/docs/src/components/alert.njk b/docs/src/components/alert.njk index 0f1563d..4d6064d 100644 --- a/docs/src/components/alert.njk +++ b/docs/src/components/alert.njk @@ -19,20 +19,48 @@ toc: {% from "macros/code_preview.njk" import code_preview %} {% from "macros/code_block.njk" import code_block %} -{% set code %}Please verify your billing information and try again.
+You can use one of the two classes: alert or alert-dialog.
Use the alert or alert-destructive.
The component has the following HTML structure:
diff --git a/docs/src/components/avatar.njk b/docs/src/components/avatar.njk index 33d80c0..c9c09c8 100644 --- a/docs/src/components/avatar.njk +++ b/docs/src/components/avatar.njk @@ -16,21 +16,23 @@ toc: {% set code %} -
-
-
-
-
-
+
+
+
+
To make an avatar, simply apply Tailwind utility classes directly to an <img> element:
Avatars are just <img> elements styled with Tailwind utility classes.
diff --git a/docs/src/components/badge.njk b/docs/src/components/badge.njk
index ef1f67a..5eff349 100644
--- a/docs/src/components/badge.njk
+++ b/docs/src/components/badge.njk
@@ -25,7 +25,25 @@ toc:
{% from "macros/code_preview.njk" import code_preview %}
{% from "macros/code_block.njk" import code_block %}
-{% set code %}Badge{% endset %}
+{% set code %}
+