Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkfor/suspend-button
a react suspend button
https://github.com/kkfor/suspend-button
Last synced: 3 months ago
JSON representation
a react suspend button
- Host: GitHub
- URL: https://github.com/kkfor/suspend-button
- Owner: kkfor
- License: mit
- Created: 2019-04-04T06:47:51.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-14T07:16:05.000Z (almost 5 years ago)
- Last Synced: 2024-10-19T21:30:30.329Z (3 months ago)
- Language: JavaScript
- Size: 341 KB
- Stars: 49
- Watchers: 1
- Forks: 27
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# suspend-button
a react suspend button
- [demo](https://kkfor.github.io/suspend-button/)
- [github](https://github.com/kkfor/suspend-button)## 安装
npm install suspend-button -S## 使用
```
import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import SuspendButton from 'suspend-button'class App extends Component {
render() {
return (
)
}
}ReactDOM.render(
,
document.getElementById('container')
)
```## 属性
| 属性名 | 类型 | 说明 |
| - | - | - |
| img| String | 图片地址 |
| style | obj | 样式 |