Skip to content
Ringobook v3.29.0

Empty state

An empty state tells users why a view has no content and what to do next. It combines an illustration, a title, a description, and optional actions.

Pick illustrations from the Empty states gallery.

Use .ro-empty-state as the root. Add both a light and a dark illustration: the one matching the current data-ro-mode is shown automatically.

<div class="ro-empty-state">
<img class="ro-empty-state-illustration ro-empty-state-illustration-mode-light" src="https://webcdn.ringover.com/app/img/empty-states/no-meetings-calls-light.webp" alt="" />
<img class="ro-empty-state-illustration ro-empty-state-illustration-mode-dark" src="https://webcdn.ringover.com/app/img/empty-states/no-meetings-calls-dark.webp" alt="" />
<div class="ro-empty-state-content">
<h3 class="ro-heading ro-level-3 ro-empty-state-title">No meetings yet</h3>
<p class="ro-empty-state-desc">Scheduled meetings will appear here.</p>
</div>
<div class="ro-empty-state-actions">
<button type="button" class="ro-btn ro-color-scheme-product">Schedule a meeting</button>
</div>
</div>
Preview

No meetings yet

Scheduled meetings will appear here.

Illustrations are decorative: keep alt="" and put the meaning in the title and description.

Add .ro-size-sm (80px illustration) or .ro-size-lg (280px illustration). The default is 140px.

<div class="ro-empty-state ro-size-sm">
…
<div class="ro-empty-state-actions">
<button type="button" class="ro-btn ro-variant-outlined">Learn more</button>
<button type="button" class="ro-btn ro-color-scheme-product">Set hours</button>
</div>
</div>
<div class="ro-empty-state">…</div>
<div class="ro-empty-state ro-size-lg">…</div>
Preview

No availability

Set your hours to get booked.


No availability

Set your hours to get booked.


No availability

Set your hours to get booked.


ClassDescription
.ro-empty-stateRoot; centered column, max width 328px (400px for lg).
.ro-empty-state-illustrationIllustration image.
.ro-empty-state-illustration-mode-lightShown in light mode.
.ro-empty-state-illustration-mode-darkShown in dark mode and inside light-mode [data-ro-mode="inverted"] containers.
.ro-empty-state-contentWraps title and description.
.ro-empty-state-titleTitle.
.ro-empty-state-descSecondary-color description.
.ro-empty-state-actionsCentered, wrapping row of buttons.
.ro-size-sm / .ro-size-lgSmaller or larger layout.
VariableDefaultDescription
--ro-empty-state-illustration-size140pxIllustration width.
--ro-empty-state-max-width328pxRoot max width.
--ro-empty-state-gapvar(--ro-size-6)Gap between illustration, content, and actions.
--ro-empty-state-text-gapvar(--ro-size-1)Gap between title and description.
--ro-empty-state-title-sizevar(--ro-fs-text-lg)Title font size.

Changelog

Recent updates in @ringover/styles. See the full package changelog .

@ringover/styles@3.29.0
  • Updated empty state layout with themed light / dark illustrations and `sm` / `lg` sizes.