Empty state

A centered layout for empty views such as no-results screens or first-run prompts. Contains an optional icon or illustration, title, body, and action buttons. The icon shown here is from Font Awesome.

Default

index.htmlhtml
<div class="ln-empty-state">
  <div class="ln-empty-state__icon">
    <i class="fa-solid fa-magnifying-glass" aria-hidden="true"></i>
  </div>
  <h3 class="ln-empty-state__title">No results found</h3>
  <p class="ln-empty-state__body">Try adjusting your search or filters to find what you're looking for.</p>
  <div class="ln-empty-state__actions">
    <button class="ln-button ln-button--solid ln-button--primary">Clear filters</button>
  </div>
</div>

No results found

Try adjusting your search or filters to find what you're looking for.

Reference

ClassDescriptionResponsive
.ln-empty-stateCentred empty state containerNo
.ln-empty-state__mediaIllustration or imageNo
.ln-empty-state__iconIcon elementNo
.ln-empty-state__titleHeadingNo
.ln-empty-state__bodyDescription textNo
.ln-empty-state__actionsAction buttons containerNo
.ln-empty-state--compactReduced padding and smaller illustrationNo
.ln-empty-state--sunkenSunken background surfaceNo