Skip to content
Living Life

Alert plugin: showcase of all variants

A complete guide to the alert code block language: colors, styles, direction, icons, title, description, and custom classes in Markdown and MDX.

Authoring1min read

This post demonstrates every variant supported by the custom alert code block language.

It works in both .md and .mdx files.

When title is provided, the alert renders with daisyUI title + description structure.

Use class to append any extra utility or daisyUI classes.

If description is omitted, all non-key lines become the description.

Use this pattern inside Markdown or MDX:

```alert
type: info
style: soft
direction: responsive
icon: lucide:info
title: Optional title
description: Optional description
class: optional-extra-classes
```

Comments

Comments need configuration

Giscus is enabled but not yet configured. Add the repository details below to start collecting comments.

  1. Visit giscus.app and select your public GitHub repository (Discussions must be enabled).
  2. Copy the generated data-repo-id, data-category and data-category-id values.
  3. Set the PUBLIC_GISCUS_ENABLED, PUBLIC_GISCUS_REPO, PUBLIC_GISCUS_REPO_ID, PUBLIC_GISCUS_CATEGORY and PUBLIC_GISCUS_CATEGORY_ID env vars in your .env file.
  4. Rebuild the site — this notice will be replaced by the live comments thread.

Open giscus.app