Moey Icons
No results. Try “dialog”, “dark” or “grid”.
Components

Close button

The ✕ for alerts, dialogs, drawers, toasts and cards. Always give it an aria-label.

It takes the color of whatever it sits in, and its hover tint is see-through — so it fits on any background without extra classes.

In a red box In a blue box
<button class="btn-close" aria-label="Close"></button>
<button class="btn-close btn-close-sm" aria-label="Close"></button>   <!-- sm · lg -->
<button class="btn-close" aria-label="Close"><i class="mi mi-x"></i></button>   <!-- your own icon -->

Where it shows up

The same ✕ closes alerts, dialogs, drawers, sheets, toasts and popovers — no attributes needed.

Click the ✕ to dismiss this alert.
Getting started
A card with a ✕ in its header (it uses a one-line onclick, since cards don't close on their own).
<div class="grid grid-cols-1 gap-4 max-w-lg">
  <div class="alert alert-cyan alert-subtle" role="status">
    <i class="mi mi-info alert-icon"></i>
    <div class="alert-content">Click the ✕ to dismiss this alert.</div>
    <button class="btn-close btn-close-sm" aria-label="Dismiss"></button>
  </div>
  <div class="card">
    <div class="card-header">
      <div class="card-title">Getting started</div>
      <div class="card-actions">
        <button class="btn-close btn-close-sm" aria-label="Hide" onclick="this.closest('.card').remove()"></button>
      </div>
    </div>
    <div class="card-body">A card with a ✕ in its header (it uses a one-line onclick, since cards don't close on their own).</div>
  </div>
</div>