Alert

Displays an alert message with 3 different statutes.

Frontmatter

blocks:
  - type: alert
    text: '' # markdown
    state: '' # [danger, dark, info, light, primary, secondary, success, warning]
    title: '' # string (optional)
    icon: '' # string, icon name (optional)
    ui: {} # (optional)
      theme: '' # [accent, black, dark, highlight, light, neutral, white] (optional)
      grid: '' # [xsmall, small, medium, large, container, full] (optional)
      offset: '' # [start, center, end] (optional)
      align: '' # [start, center, end] (optional)

The message sits at the root as text, not inside a heading — though a heading above it is still rendered if you add one. Available state values are declared per project in params.admin.fields.state.options.

See Common keys for heading, footing and the full ui reference.

Demo visual renderer

Files

CMS availability

CMSHugolify Admin v2
CloudCannonAvailable
Decap CMSAvailable
Netlify CMSAvailable
Pages CMSAvailable
Static CMSAvailable
Sveltia CMSAvailable
Tina CMSAvailable