@wpmudev/react-button
v1.1.2
Published
WPMU DEV Shared UI React Button Component
Downloads
110
Keywords
Readme
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
.