zooid-button
Button
Last updated 4 years ago by octoblu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install zooid-button 
SYNC missed versions from official npm registry.

zooid-button

React Button Component

Build Status Test Coverage Dependency status devDependency Status Slack Status

NPM

Install

npm install --save zooid-button

Props

Prop Type Default Description
kind string 'default' Choose from default, primary, approve, danger, neutral, hollow-primary, hollow-approve, hollow-danger, hollow-neutral, or no-style
size string 'regular' Choose from small, regular, or large
disabled boolean Makes your button un-clickable
block boolean Makes your button have 100% width
href string Link to something by adding an href to your button
className string Additional css classes for your button
onClick function Add 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>
  }
}

Current Tags

  • 1.2.3                                ...           latest (4 years ago)

19 Versions

  • 1.2.3                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.3                                ...           4 years ago
  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.10                                ...           4 years ago
  • 1.0.9                                ...           4 years ago
  • 1.0.8                                ...           4 years ago
  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 19
Last Day 0
Last Week 0
Last Month 19
Dependencies (10)

Copyright 2014 - 2017 © taobao.org |