1.0.1 • Published 9 months ago

react-rpg-dice v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

react-rpg-dice

Click a die button to roll a die. Click multiple times to roll multiple dice.

Live Demo:

default

vertical orientation

custom dice

custom timeouts

custom roll function

OptionDescription
callback (required)function called with results of rolls (type Result = { result: number, sides: number, bonus: number })
orientation'horizontal' (default) or 'vertical'
dicearray of what sided dice (default 4, 6, 8, 10, 12, 20 )
defaultTimeouthow long to wait for additional dice before rolling
timeoutMultipliersmultiplies defaultTimeout after certain numbers of dice in queue
diceRollFnroll calculator override
1.0.1

9 months ago

1.0.0

9 months ago