0.2.3 • Published 6 years ago

react-tote-box v0.2.3

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

React Tote Box · license npm (scoped)

NZ's React components library

Installation

React-tote-box requires React v16.3+, react-dom and react-transition-group

$ npm install react-tote-box

Components

Modal

API

PropsDescriptionTypeDefault
titleModal 标题String"Modal Title"
visibleModal 是否可见Booleanfalse
animation动画展现方式String"zoom"
onClose点击右上角叉后的回调Functionnoop

Usage

<Modal
  title="Example" 
  visible={this.state.visible}
  animation="flip"
  onClose={() => this.setState({ visible: false })}  
>
  <p>some content...</p>
</Modal>

Animate

API

PropsDescriptionTypeDefault
in在可见后开始动画Booleanfalse
animation动画展现方式String"fade"
duration动画展现时间Number400
其他属性参考:react-transition-group

Animations

animation
fadefadeDownfadeLeftfadeRight
fadeUp
flipflipXflipY
rotaterotateDownLeftrotateDownRightrotateUpLeft
rotateUpRight
zoom

Usage

<Animate in={visible} animation="zoom" duration="600">
  <div className="loading" />
</Animate>

License

MIT

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago