Skip to content

Type Alias: DiceRollerProps ​

ts
type DiceRollerProps = RollerOptions & object & Omit<HTMLAttributes<HTMLDivElement>, 
  | keyof RollerOptions
| "notation">;

Defined in: src/react.tsx:7

The 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.

Type Declaration ​

notation? ​

ts
optional notation?: string;

The dice showing at first, as notation: "2d20kh1+5". It wins over spec when both are given, and the tray follows it when it changes.

MIT © John Morris