UNPKG

spin-wheel-game

Version:
20 lines (19 loc) 482 B
export interface ISpinWheelProps { segments: ISegments[]; onFinished: (result: string) => void; primaryColor?: string; contrastColor?: string; buttonText?: string; isOnlyOnce?: boolean; size?: number; upDuration?: number; downDuration?: number; fontFamily?: string; arrowLocation?: 'center' | 'top'; showTextOnSpin?: boolean; isSpinSound?: boolean; } export interface ISegments { segmentText: string; segColor?: string; }