diff --git a/.changeset/hip-jobs-double.md b/.changeset/hip-jobs-double.md new file mode 100644 index 000000000..0692c94f4 --- /dev/null +++ b/.changeset/hip-jobs-double.md @@ -0,0 +1,5 @@ +--- +"@tabler/core": minor +--- + +Adding `alerts.html` page with example of alerts. diff --git a/docs/components/alerts.mdx b/docs/components/alerts.mdx index 6e5579400..2311ec34f 100644 --- a/docs/components/alerts.mdx +++ b/docs/components/alerts.mdx @@ -352,6 +352,21 @@ Add primary and secondary buttons to your alert modals if you want users to take If you want your alert to be really eye-catching, you can add a class `alert-important`. ```html example +
Wrap any text and an optional dismiss button in .alert and one of the four contextual classes (e.g., .alert-success) for basic alert messages.
Build on any alert by adding an optional icon.
+ {% include ui/alert.html type="success" show-icon=true %} + {% include ui/alert.html type="warning" show-icon=true %} + {% include ui/alert.html type="danger" show-icon=true %} + {% include ui/alert.html type="info" show-icon=true %} +Build on any alert by adding an optional .alert-dismissible and close button.
Build on any alert by adding an optional .alert-dismissible and close button.