1.0.3 • Published 2 years ago

rc-dice v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rc-dice

npm.io npm.io npm.io npm.io

A 3D dice using CSS3 animation.

screenshot

安装 Install

npm install rc-dice -S
# or with yarn
yarn add rc-dice

示例 Usage

Example: https://codesandbox.io/s/rc-dice-rgzjb

基本 Basic

import Dice from 'rc-dice'

const App = () => {
  const defaultValue = 3
  return (
    <Dice defaultValue={defaultValue} onFinish={(value) => console.log(value)} />
  );
};

API

参数 Props

名称 Name类型Type描述 Description
defaultValuenumber初始值,默认1
onFinish(value) => void结束回调 callback
1.0.2

2 years ago

1.0.1

2 years ago

1.0.3

2 years ago

1.0.0

2 years ago