@wpmudev/react-button

1.1.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @wpmudev/react-button

Weekly Downloads

20

Version

1.1.2

License

GPL-3.0

Unpacked Size

48.9 kB

Total Files

6

Last publish

Collaborators

  • pentatonicfunk
  • emgk
  • incsub-development
  • rtbfreitas