Skip to content
Back

Social proof toastPro

Small “someone just joined” cards for marketing pages: new trials, upgrades and checked purchases slide in on a timer, pointing at or tabbing into the pile freezes it and spreads it open, and each card can be closed.

oxyn add social-proof-toast

1,284 people joined this week

Daniel K. bought the yearly plan

Toronto · Just nowVerified

Northpeak Labs upgraded to Team

12 seats · 7 min agoVerified by Stripe

Sofia from Brightlane started a Pro trial

Lisbon · 6 min ago

The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Show recent sign-ups and purchases on a landing or pricing page without interrupting the visitor.

When not to use

Installation

Social proof toast is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add social-proof-toast

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Feed

A sample SaaS feed.

1,284 people joined this week

Daniel K. bought the yearly plan

Toronto · Just nowVerified

Northpeak Labs upgraded to Team

12 seats · 7 min agoVerified by Stripe

Sofia from Brightlane started a Pro trial

Lisbon · 6 min ago

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Single

One at a time, no header (Oxyn extra).

Daniel K. bought the yearly plan

Toronto · Just nowVerified

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Deep

Five stacked, no fan (Oxyn extra).

1,284 people joined this week

Daniel K. bought the yearly plan

Toronto · Just nowVerified

Northpeak Labs upgraded to Team

12 seats · 7 min agoVerified by Stripe

Sofia from Brightlane started a Pro trial

Lisbon · 6 min ago

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

SocialProofToast

PropTypeDefaultDescription
nowrequiredClockMs—Host clock.
intervalu644_000Ms between toasts.
max_visibleusize3Toasts stacked at once.
prefillusize1Toasts already shown on mount.
loopingbooltrueStart over after the last event.
expand_on_hoverbooltrueFan the stack out on hover or focus.
headerbooltrueShow the header line (Oxyn extra).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabEach visible toast's dismiss button; focus pauses and fans the stack
EnterorSpaceDismiss the focused toast
EscapeDismiss the front toast

Accessibility

  • The pile is a named region, but arrivals are deliberately silent so nobody using a screen reader gets cut off.
  • Each dismiss button names its toast (Dismiss: Sofia from Brightlane started a Pro trial).
  • Pointing at it or tabbing into it freezes the timer without losing its place.
From the spec

A labelled region; new toasts are not announced; each dismiss button names its toast; Escape dismisses the front toast; the pause keeps the time left. Every action returns the line the polite live region announces. The focus outline shows only for keyboard focus.

Motion & interaction

A new toast rises in at the front while the others step back 10 px and shrink 5 % each (their text hidden so nothing overlaps); hover or focus fans them out; dismiss buttons appear on hover or focus and are always visible on touch.

Timing

Everything on screen is derived from the host clock now (no timers in the component), so playback, tests and the GPUI view agree.

TransitionDurationEasing
Interval4000 ms default—
Entrance360 ms riseease-out
Stack and fan320 msease-out

Reduced motion: loops and travel stop; each state shows its end pose and its words.

Responsive behaviour

  • 360 px wide; on narrow screens it spans the width.
  • One line per row with an ellipsis, so a toast never changes height.
Edge cases (spec)

360 px wide; full width on narrow screens. One line per row with an ellipsis, so a toast never changes height. Real marks only for named brands (Slack, Linear, Stripe); fictional people and companies use initials. Checked at 1440, 768 and 390 px in light and dark with no text overlap. Chrome is monochrome grey; colour is semantic only (success, warning, danger, info) plus the official coloured brand and model marks.

Notes for AI

  • Import SocialProofToast from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: AiKitView in oxyn_gpui.
  • Props to set first: now.
  • It reads a clock (now) for live timers; pass one clock for the whole page rather than one per component.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI