N
neokit

Alert

A contextual feedback message. Built with DaisyUI's alert class on a <div role="alert">. Supports four semantic colors, three visual variants, an optional SVG icon slot, and vertical stacking.

Default

No color prop — neutral base style.

alert default

Colors

Four semantic color tokens: info, success, warning, error.

alert colors

Without icon

The icon slot is optional — omit it for a text-only alert.

alert no icon

Soft variant

variant="soft" uses a muted background tint — less visually heavy than the default filled style.

alert soft

Outline variant

variant="outline" — transparent background with a colored border.

alert outline

Dash variant

variant="dash" — left border accent only.

alert dash

Vertical

vertical stacks the icon above the message content.

alert vertical

With action

Place a button inside the default slot alongside the message text.

alert with action

Form validation

Real-world usage: a top-of-form error summary.

alert form error