Skip to content
npm ↗ GitHub ↗

Documentation

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

ClassDescription
.cb-emptyBox with a dotted border and centered content.
.cb-empty__iconFramed icon.
.cb-empty__title, .cb-empty__textTitle and explanation.
.cb-empty__actionsButtons.

Accessibility

  • If the empty state appears after filtering, announce it with an aria-live region.