feedback · etat-vide

État vide

Message à afficher quand une liste, une recherche ou un tableau n'a rien à montrer, avec une action pour aider à en sortir.

Voir le code source
<style>
.bn-empty {
  max-width: 320px;
  padding: 3rem 2rem;
  text-align: center;
  font-family: 'Inter', sans-serif;

  background: #0B0F10;
  border: 1px dashed rgba(230, 228, 221, 0.15);
  border-radius: 8px;
}

.bn-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 1px solid rgba(230, 228, 221, 0.2);

  font-size: 1.3rem;
  color: #5C6160;
}

.bn-empty__title {
  margin: 0 0 0.5rem;
  color: #E6E4DD;
  font-size: 1rem;
}

.bn-empty__text {
  margin: 0 0 1.5rem;
  color: #979793;
  font-size: 0.85rem;
}

.bn-empty__btn {
  padding: 0.65rem 1.3rem;
  border: 1px solid rgba(230, 228, 221, 0.3);
  border-radius: 999px;
  background: none;
  color: #E6E4DD;
  font-size: 0.8rem;
  cursor: pointer;
}

.bn-empty__btn:hover {
  border-color: #E6E4DD;
}

</style>

<div class="bn-empty">
  <span class="bn-empty__icon">◎</span>
  <h3 class="bn-empty__title">Aucun résultat</h3>
  <p class="bn-empty__text">Aucun élément ne correspond à votre recherche.</p>
  <button type="button" class="bn-empty__btn">Effacer les filtres →</button>
</div>