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-toast1,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 preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
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
- Replays a multi-agent run on one clock: use Agent timeline instead.
- One model at a glance: use Model card instead.
- A small automation on a single rail: use AI workflow instead.
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.
oxyn add social-proof-toastUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
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 preview is free. Pro opens the code of every Pro component, screen and template.
Single
One at a time, no header (Oxyn extra).
Daniel K. bought the yearly plan
Toronto · Just nowVerified
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
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 preview is free. Pro opens the code of every Pro component, screen and template.
API reference
SocialProofToast
| Prop | Type | Default | Description |
|---|---|---|---|
nowrequired | ClockMs | — | Host clock. |
interval | u64 | 4_000 | Ms between toasts. |
max_visible | usize | 3 | Toasts stacked at once. |
prefill | usize | 1 | Toasts already shown on mount. |
looping | bool | true | Start over after the last event. |
expand_on_hover | bool | true | Fan the stack out on hover or focus. |
header | bool | true | Show the header line (Oxyn extra). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Each visible toast's dismiss button; focus pauses and fans the stack |
| EnterorSpace | Dismiss the focused toast |
| Escape | Dismiss 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.
| Transition | Duration | Easing |
|---|---|---|
| Interval | 4000 ms default | — |
| Entrance | 360 ms rise | ease-out |
| Stack and fan | 320 ms | ease-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
SocialProofToastfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
AiKitViewinoxyn_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.