Skip to content

shi7/react-turntable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

待完善

react-turntable

A React HTML5 Turntable component

Installation

npm install react-turntable --save

Example

git clone https://github.com/lijinke666/react-turnatable
  • yarn of npm install
  • npm run demo run example

Usage

API

  • Message.success(options)
  • Message.error(options)
  • Message.info(options)
  • Message.warning(options)
  • Message.loading(options)
  • Message.confirm(options)
  • Message.prompt(options)

Options

  • options.content

    • Desc : content of the message
    • Type : string | ReactNode
    • Default : Balabala
  • options.duration

    • Desc : time before auto-dismiss,in seconds
    • Type : number
    • Default : 2
  • options.theme

    • Desc : theme of the message
    • Type : string
    • Default : light
  • options.onClose

    • Desc : Specify a function that will be called after the message closed
    • Type : Function
    • Default : -

About

🎯 A HTML5 raffle turntable component for react

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 82.2%
  • Less 7.5%
  • CSS 5.8%
  • HTML 4.5%