Skip to the content

Korokoroコロコロ

Roll mixed dice or type notation, compare exact probabilities, keep a history and replay seeded rolls.

Korokoro describes something small rolling in Japanese. About the name

Contents

Reference

React components

import { … } from "@johnmorrisdotca/korokoro/react";

106.4 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
DiceRollerfunctionThe tray as a React component: <DiceRoller wide notation="2d20kh1+5" />.
DiceRollerPropstypeThe tray's options as props, notation as a shorter way to give the dice, and any attribute for the <div> the tray is mounted in.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/korokoro 1.16.0.