1.1.6 • Published 6 years ago
@stnew/button v1.1.6
@stnew/button
A button component for React projects.
Usage
// require.js
const button = require('@stnew/button');
// es6
import Button from '@stnew/button';Props
className- string sets the class of the button.onClick- function sets the callback function for click eventsdisabled- boolean toggle for the 'disabled' state of the buttonlabel- string Text to be displayed on the button elementtitle- string sets the 'title' attribute for the element.as- 'button', 'a' can override the tag used for the element.href- string link to be opened when the button element is clicked.target- string sets the 'target' attribute for the element.rel- string sets the 'rel' attribute for the element.type- 'button', 'submit' sets the 'type' attribute for the element.