UNPKG

cyber-dice

Version:
43 lines (37 loc) 925 B
import { FC } from 'react'; type CustomFace = "first" | "second" | "third" | "fourth" | "fifth" | "sixth"; interface ICubeCustomSide { text: string; textColor?: string; fontSize?: string; bgColor?: string; } interface Props$2 { randomNumber: number; isAnimation: boolean; animationEndHandler: () => void; size?: number; sides: Array<ICubeCustomSide>; } declare const Cube: FC<Props$2>; interface Props$1 { randomNumber: number; isAnimation: boolean; animationEndHandler: () => void; size?: number; faces?: [ CustomFace, CustomFace, CustomFace, CustomFace, CustomFace, CustomFace ]; } declare const Dice: FC<Props$1>; interface Props { randomNumber: number; size?: number; } declare const RandomDiceFace: FC<Props>; export { Cube as CubeWithAnimation, RandomDiceFace as Dice, Dice as DiceWithAnimation };