Skip to content
Interactive

SpinWheel

A fairground wheel in enamel paint, with brass pegs, a leather flipper and a ring of bulbs. Flick it or press the hub; the pegs slow it, the flipper holds it back at the end, and where it stops is the prize. Enter works too.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
itemsstring[]8 snack prizesPrizes round the wheel, 3 or more.
colorsstring[]4 enamel coloursUsed in turn, as six-digit hex.
soundbooleantrueTick on each peg.
onResult(item: string, index: number) => void-Called with the winning item and its index.
labelstring"Prize wheel"Read out by screen readers.
classNamestring"w-96"Set the width here. Everything scales with it.