# @wpmudev/react-button

> WPMU DEV Shared UI React Button Component

Latest version **1.1.2** (published 2022-05-30) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @wpmudev/react-button
pnpm add @wpmudev/react-button
yarn add @wpmudev/react-button
bun add @wpmudev/react-button
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2022-05-30 |
| First published | 2020-11-17 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 47.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | WPMU DEV |
| Maintainers | vanyukov, calumbrash, iamleigh |

## Links

- npm: https://www.npmjs.com/package/@wpmudev/react-button
- Repository: https://github.com/wpmudev/shared-ui-react
- Homepage: https://github.com/wpmudev/shared-ui-react#readme
- Issues: https://github.com/wpmudev/shared-ui-react/issues
- npm.io page: https://npm.io/package/@wpmudev/react-button

## Recent versions

- 1.1.2 (latest) — 2022-05-30
- 1.1.1 — 2022-05-03
- 1.1.0 — 2022-01-31
- 1.0.8 — 2021-04-24
- 1.0.7 — 2021-04-23
- 1.0.6 — 2021-04-23
- 1.0.5 — 2021-04-15
- 1.0.4 — 2021-04-08
- 1.0.3 — 2021-03-31
- 1.0.2 — 2021-03-19
- 1.0.1 — 2021-03-12
- 1.0.0 — 2021-02-09
- 0.1.3 — 2021-01-12
- 0.1.2 — 2021-01-11
- 0.1.1 — 2020-12-17
- … 1 more at https://npm.io/package/@wpmudev/react-button/versions

## README

[![License: GPLv3](https://img.shields.io/badge/License-GPL%20v3-blue.svg?color=green)](http://www.gnu.org/licenses/gpl-3.0)
[![npm](https://img.shields.io/npm/v/@wpmudev/react-button)](https://www.npmjs.com/package/@wpmudev/react-button)
![npm peer dependency version](https://img.shields.io/npm/dependency-version/@wpmudev/react-button/peer/react)

# React Button
[React Button](https://wpmudev.github.io/shared-ui-react/?path=/story/components-button--primary) allows you include a button on your project.

## Installation

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

## Usage

### Javascript Instantiation

```js
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`.

---
_Source: https://npm.io/package/@wpmudev/react-button · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
