1.1.2 • Published 2 years ago

@wpmudev/react-button v1.1.2

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
2 years ago

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 NameTypeDescription
labelStringAdd some text to your button.
iconStringIcon to render within root element.
iconRightBooleanWill make the icon display to the right of the label if true.
designStringWhen using ghost enables outlined variant.
colorStringType color name to change button default color.
hrefStringSets a hyperlink & uses anchor tag instead of a button.
loadingBooleanSets button in loading state if true.
disabledBooleanDisables button if true.