コンテンツにスキップ
まだあたたかい

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.

Authoring 1 分で読めます

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
```