@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 events
disabled - boolean toggle for the 'disabled' state of the button
label - string Text to be displayed on the button element
title - 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.