17/Content
Empty state
Empty state with icon, text and actions for when a list or search has no results.
With action
Aún no hay facturas
Cuando emitas tu primera factura aparecerá aquí con su estado y fecha.
HTML
<div class="cb-empty">
<div class="cb-empty__icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M22 12h-6l-2 3h-4l-2-3H2"/><path d="M5.5 5h13L22 12v7H2v-7z"/></svg></div>
<h3 class="cb-empty__title">Aún no hay facturas</h3>
<p class="cb-empty__text">Cuando emitas tu primera factura aparecerá aquí con su estado y fecha.</p>
<div class="cb-empty__actions"><a href="#" class="cb-btn cb-btn--primary">Crear factura</a><a href="#" class="cb-btn cb-btn--outline">Importar</a></div>
</div>
Classes and modifiers
| Class | Description |
|---|---|
.cb-empty | Box with a dotted border and centered content. |
.cb-empty__icon | Framed icon. |
.cb-empty__title, .cb-empty__text | Title and explanation. |
.cb-empty__actions | Buttons. |
Accessibility
- If the empty state appears after filtering, announce it with an
aria-liveregion.