npm.io
1.1.2 • Published 4 years ago

@wpmudev/react-button

Licence
GPL-3.0
Version
1.1.2
Deps
0
Size
48 kB
Vulns
0
Weekly
0
Stars
3

License: GPLv3 npm npm peer dependency version

React Button

React Button allows you include a button on your project.

Installation

npm i @wpmudev/react-button --save-dev

Usage

Javascript Instantiation
import React from 'react';
import {
  Button
} from '@wpmudev/react-button';

const MyApp = () => {
  return (
    <Button label="Click Me" />
  );
}
Props
Prop Name Type Description
label String Add some text to your button.
icon String Icon to render within root element.
iconRight Boolean Will make the icon display to the right of the label if true.
design String When using ghost enables outlined variant.
color String Type color name to change button default color.
href String Sets a hyperlink & uses anchor tag instead of a button.
loading Boolean Sets button in loading state if true.
disabled Boolean Disables button if true.