Skip to content

StupidManYI/suspend-button

Repository files navigation

suspend-button

a react suspend button 以前有位老兄很早发布了一这个组件(原作地址),很好用,在此表示感谢. 但是是基于移动端的,所以我把pc端也补上,顺便支持ts;

安装

npm i suspend-button-luckytree -S

使用

import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import SuspendButton from 'suspend-button'

class App extends Component {
  render() {
    return (
      <SuspendButton></SuspendButton>
    )
  }
}

ReactDOM.render(
  <App />,
  document.getElementById('container')
)

属性

属性名 类型 说明
img String 图片地址
style obj 样式

About

a react suspend-button

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published