Kodza

Alert

A message in the page: note, success, warning or error, told apart by the icon, not by color. The icon draws itself, a dismissed alert folds away and an error unfolds its log.

Feedback & loading No dependencies alertcalloutmessageerror Added Oct 2026
/anim/alert/ Fullscreen

With your AI

Just ask.

Say it to your AI. It gets the exact code below, not its best guess, and knows where it goes.

Show my form errors with a Kodza Alert.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-alert.html
<div class="kodza-alert" role="note">
  <svg class="kodza-alert__icon" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="8" pathLength="1" /><path d="M10 9v4.6M10 6.4v.1" pathLength="1" /></svg>
  <div class="kodza-alert__body">
    <p class="kodza-alert__title">Zero dependencies</p>
    <p class="kodza-alert__text">This component ships without a single package. Your bundle can relax.</p>
  </div>
  <button class="kodza-alert__close" type="button" aria-label="Dismiss"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M3 3l6 6M9 3 3 9" /></svg></button>
</div>

<div class="kodza-alert kodza-alert--success" role="note">
  <svg class="kodza-alert__icon" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="8" pathLength="1" /><path d="M6.6 10.3l2.3 2.3 4.6-5" pathLength="1" /></svg>
  <div class="kodza-alert__body">
    <p class="kodza-alert__title">Deployed to production</p>
    <p class="kodza-alert__text">It is Friday, 5:58 pm. Bold. We respect it.</p>
  </div>
  <button class="kodza-alert__close" type="button" aria-label="Dismiss"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M3 3l6 6M9 3 3 9" /></svg></button>
</div>

<div class="kodza-alert kodza-alert--warning" role="note">
  <svg class="kodza-alert__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M10 2.6 18 16.6H2Z" pathLength="1" /><path d="M10 8.2v4M10 14.4v.1" pathLength="1" /></svg>
  <div class="kodza-alert__body">
    <p class="kodza-alert__title">Deprecated prop</p>
    <p class="kodza-alert__text"><code>size="huge"</code> goes away in v3. Switch to <code>size="lg"</code> before it switches you.</p>
  </div>
  <button class="kodza-alert__close" type="button" aria-label="Dismiss"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M3 3l6 6M9 3 3 9" /></svg></button>
</div>

<div class="kodza-alert kodza-alert--error" role="note">
  <svg class="kodza-alert__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M7 2.4h6l4.6 4.6v6L13 17.6H7L2.4 13V7Z" pathLength="1" /><path d="M10 6.4v4.6M10 13.6v.1" pathLength="1" /></svg>
  <div class="kodza-alert__body">
    <p class="kodza-alert__title">Build failed</p>
    <p class="kodza-alert__text">1 error, 0 regrets. The log knows more.</p>
    <button class="kodza-alert__more" type="button" aria-expanded="false"><span>Show log</span><span>Hide log</span></button>
    <div class="kodza-alert__details" hidden>
      <pre><code>src/button.js:42:7
  SyntaxError: Unexpected token '}'
    41 |   return label
  > 42 |   }}
       |    ^ one brace too many</code></pre>
    </div>
  </div>
  <button class="kodza-alert__close" type="button" aria-label="Dismiss"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M3 3l6 6M9 3 3 9" /></svg></button>
</div>

Checked

Checked before you paste.

Robots poked at it before you did. Every component goes through the same checks, and again each time it changes.

What ranLast run
Accessibilityaxe-core 4.10.2: the WCAG 2.1 A and AA rules, plus best practices. 0 issues
KeyboardThe Tab key gets there, and the focus ring shows when it does. Passed
Reduced motionTurn on reduced motion and what moved just appears. Nothing loops. Passed
Light and darkThe same checks on both themes, contrast included. Passed
WordPressPasted into Twenty Twenty-Five, Twenty Twenty-One, Astra, Blocksy, GeneratePress, Hello Elementor, Kadence and OceanWP. Nothing to flag. 8 / 8 themes
Robots checked this. A human with VoiceOver hasn't yet.

More like this

More in Feedback & loading