1.2.3 • Published 5 years ago

react-button-xgy v1.2.3

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

react-button-xgy

A react plugin for button component

How to use

It's simple.

// first import plugin

import Button from 'react-button-xgy'

const App = () => {
    return (
      <div>
        <Button
          text={'大号按钮'}
          type={'default'}
          size='lg'
          onClick={() => { console.log('我点了!!!') }}
        />
      </div>
    )
  }
ReactDOM.render(
  <App />, document.getElementById('app')
)

```react bash
# install dependencies
npm install react-button-xgy --save

Button sizes

<Button size='lg' text={'大号按钮'}></Button>
<Button size='xm' text={'默认按钮'}></Button>
<Button size='sm' text={'小号按钮'}></Button>

Button type

<Button type='normal' text={'按钮'}></Button>
<Button type='default' text={'按钮'}></Button>
<Button type='danger' text={'按钮'}></Button>

Button icon || href || loading

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago