UNPKG

spin-wheel

Version:

An easy to use, themeable component for randomising choices and prizes.

23 lines (18 loc) 356 B
import {Wheel} from '../../../dist/spin-wheel-esm.js'; window.onload = () => { const props = { items: [ { label: 'one', }, { label: 'two', }, { label: 'three', }, ], }; const container = document.querySelector('.wheel-wrapper'); window.wheel = new Wheel(container, props); };