1.2.3 • Published 8 years ago

zooid-button v1.2.3

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

zooid-button

React Button Component

Build Status Test Coverage Dependency status devDependency Status Slack Status

NPM

Install

npm install --save zooid-button

Props

PropTypeDefaultDescription
kindstring'default'Choose from default, primary, approve, danger, neutral, hollow-primary, hollow-approve, hollow-danger, hollow-neutral, or no-style
sizestring'regular'Choose from small, regular, or large
disabledbooleanMakes your button un-clickable
blockbooleanMakes your button have 100% width
hrefstringLink to something by adding an href to your button
classNamestringAdditional css classes for your button
onClickfunctionAdd a custom function to decide what to do with button clicks

Example

import React, { Component } from 'react'
import Button from 'zooid-button'

export default class App extends Component {
  render() {
    return <div>
      <h1>App</h1>
      <Button
        block
        kind="neutral"
        size="large"
        onClick={this.somefunction}>
        Large Block Button
      </Button>
    </div>
  }
}
1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.4

8 years ago

1.0.5

8 years ago

1.0.2

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago