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.
Examples
Section titled “Examples”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>

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>

No availability
Set your hours to get booked.


No availability
Set your hours to get booked.


No availability
Set your hours to get booked.
Properties
Section titled “Properties”| Class | Description |
|---|---|
.ro-empty-state | Root; centered column, max width 328px (400px for lg). |
.ro-empty-state-illustration | Illustration image. |
.ro-empty-state-illustration-mode-light | Shown in light mode. |
.ro-empty-state-illustration-mode-dark | Shown in dark mode and inside light-mode [data-ro-mode="inverted"] containers. |
.ro-empty-state-content | Wraps title and description. |
.ro-empty-state-title | Title. |
.ro-empty-state-desc | Secondary-color description. |
.ro-empty-state-actions | Centered, wrapping row of buttons. |
.ro-size-sm / .ro-size-lg | Smaller or larger layout. |
CSS custom properties
Section titled “CSS custom properties”| Variable | Default | Description |
|---|---|---|
--ro-empty-state-illustration-size | 140px | Illustration width. |
--ro-empty-state-max-width | 328px | Root max width. |
--ro-empty-state-gap | var(--ro-size-6) | Gap between illustration, content, and actions. |
--ro-empty-state-text-gap | var(--ro-size-1) | Gap between title and description. |
--ro-empty-state-title-size | var(--ro-fs-text-lg) | Title font size. |
Changelog
Recent updates in @ringover/styles. See the full
package changelog
.
-
- Updated empty state layout with themed light / dark illustrations and `sm` / `lg` sizes.