Skip to content
Ringobook v3.27.0

Stickers

A sticker wraps content (such as a button or avatar) and positions a badge overlay in a corner.

<div class="ro-sticker">
<button type="button" class="ro-btn">
<span class="ro-btn-text">button</span>
</button>
<div class="ro-sticker-item ro-top-right">
<div class="ro-badge ro-size-sm ro-color-scheme-product">3</div>
</div>
</div>
Preview
3

Use .ro-variant-inset on the sticker and ro-variant-status on the badge for a presence indicator.

<div class="ro-sticker ro-variant-inset">
<div class="ro-avatar ro-size-lg">
<img class="ro-avatar_img" alt="" src="https://i.pravatar.cc/150?img=12" />
</div>
<div class="ro-sticker-item ro-bottom-right">
<div class="ro-badge ro-variant-status ro-color-scheme-available ro-size-xs"></div>
</div>
</div>
Preview

Add .ro-top-left, .ro-top-right, .ro-bottom-left, or .ro-bottom-right on .ro-sticker-item.

ClassDescription
.ro-stickerRelative wrapper (width: fit-content) for the main content and overlay.
.ro-sticker-itemAbsolutely positioned overlay; requires a corner class (.ro-top-left, .ro-top-right, .ro-bottom-left, or .ro-bottom-right).
.ro-top-left, .ro-top-right, .ro-bottom-left, .ro-bottom-rightCorner placement and translate offset on .ro-sticker-item.
.ro-variant-insetRemoves translate offset (--ro-sticker-transform: none) — badge sits flush on the corner.
.ro-avatar-stickerAvatar-specific sticker wrapper; see Avatars.

Badges inside .ro-sticker-item use a 1.5px border (--ro-badge-border-width).

Changelog

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

@ringover/styles@3.22.0
  • Avatar sticker badge offsets.