Skip to content
Pebble Pro is here at $49 one timeSee what’s included ↗
Pebble
ComponentsDocsMCPPricing
⌕ Find a component↗Log in
All components 673

Categories

Core inputs & forms46Buttons & actions33Navigation36Overlays & feedback49Data display33Charts & data viz40Cards & layout43Marketing blocks38App shells & pages37AI interfaces40Text & typography effects33Backgrounds & visual effects38Motion & transitions32Numbers & counters32Media34E-commerce333D & interactive36Themed sets40
Start with the essentials.Installation guide ↗Connect your agent ↗
← All components3D & interactive

Coin Flip

A 3D coin with a sliced rim that flips with a spin and hop to a seeded heads or tails, plus a medal variant that turns on hover.

Preview

Click or press Space to flip.

Silver
Ink · starts tails
TopNo. 12026Medal · hover to turn

Install

Pro source requires Pebble Pro. Try the full preview above.

Props

PropTypeDefaultDescription
variant"coin" | "medal""coin"coin flips on click, Enter or Space; medal is display-only and turns on hover.
sizenumber120Diameter in px.
thicknessnumber10Rim thickness in px.
tone"gold" | "silver" | "ink""gold"Metal, from theme tokens.
frontReactNode—Custom heads face. Defaults to our sun emblem.
backReactNode—Custom tails face. Defaults to our wave emblem.
defaultSide"heads" | "tails""heads"Side showing at first (coin).
seednumber1Seed for the sequence of results, so flips are repeatable (coin).
onFlip(side: CoinSide) => void—Called when a flip lands (coin).
labelstring"Flip the coin"Accessible name. The coin appends the side showing; a medal needs one.

Pro component

Try the full preview above. Editable source and build guides require Pebble Pro.

Buy Pebble Pro — $49How source access works ↗
Pebble

Small details.
Better interfaces.

React components to explore, make your own, and build on.

Library

  • Components
  • Installation
  • Pricing

Resources

  • For agents
  • About
  • Support

Legal

  • License
  • Terms
  • Privacy
  • Final sale

Built by Pebble

A product of Praxys Solutions LLC ↗

Pebble Pro is live

$49 one time, lifetime updates ↗