# @scripty/react-buttons

> lightweight react button library.

Latest version **0.1.9** (published 2020-08-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @scripty/react-buttons
pnpm add @scripty/react-buttons
yarn add @scripty/react-buttons
bun add @scripty/react-buttons
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.9 |
| Published | 2020-08-06 |
| First published | 2020-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 39.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Danijel Garic |
| Maintainers | garic |
| Keywords | react, buttons, react buttons, button, react components |

## Links

- npm: https://www.npmjs.com/package/@scripty/react-buttons
- Repository: https://github.com/scripty08/buttons
- Homepage: https://garic.biz
- Issues: https://github.com/scripty08/buttons/issues
- npm.io page: https://npm.io/package/@scripty/react-buttons

## Dependencies (7)

- [color](https://npm.io/package/color.md) ^3.1.2
- [react](https://npm.io/package/react.md) 16.11.0
- [react-dom](https://npm.io/package/react-dom.md) 16.11.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [@scripty/styles](https://npm.io/package/@scripty/styles.md) ^0.1.40
- [@ant-design/icons](https://npm.io/package/@ant-design/icons.md) ^4.2.1
- [styled-components](https://npm.io/package/styled-components.md) ^5.1.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.9 (latest) — 2020-08-06
- 0.1.8 — 2020-07-27
- 0.1.7 — 2020-07-25
- 0.1.6 — 2020-07-25
- 0.1.5 — 2020-07-16
- 0.1.4 — 2020-07-07
- 0.1.3 — 2020-07-07
- 0.1.2 — 2020-07-07
- 0.1.1 — 2020-07-07
- 0.1.0 — 2020-07-07

## README

# @scripty/react-buttons

# Description

lightweight react button library.

![alt text](https://raw.githubusercontent.com/scripty08/buttons/master/react-buttons.png "@scripty/react-buttons")

# Usage
```bash
npm install -s @scripty/react-buttons
```

##### Client: Example.jsx

```javascript
import React, { Fragment } from 'react';
import {
    Button,
    EditButton,
    SaveButton,
    CloseButton,
    OkButton,
    MoveButton,
    AddButton,
    MenuButton,
    CancelButton,
    DeleteButton
} from '@scripty/buttons';
import PlusOutlined from '@ant-design/icons/lib/icons/PlusOutlined';
import ExclamationOutlined from '@ant-design/icons/lib/icons/ExclamationOutlined';

export const Example = () => {

    return (
        <Fragment>
            <h1>Custom Buttons</h1>
            <Button icon={<ExclamationOutlined />} color={'#1d6fad'}>Custom</Button>
            <EditButton color={'#1d6fad'} />
            <SaveButton color={'#12a525'} />
            <CloseButton />
            <MoveButton color={'rgba(201,5,156,0.49)'}/>
            <AddButton color={'#1d6fad'} />
            <CancelButton color={'#c40000'} />
            <OkButton color={'#eff700'} />
            <DeleteButton color={'red'} />
            <EditButton iconBtn color={'#1d6fad'}/>
            <DeleteButton color={'#c40000'} iconBtn/>
            <CloseButton color={'#fff'} iconBtn/>
            <CloseButton color={'#000000'} iconBtn/>

            <h1>Menu Buttons</h1>
            <MenuButton icon={<PlusOutlined/>} items={[
                <a aria-current={'page'} href={'#'} className={'active'}>Article</a>,
                <a aria-current={'page'} href={'#'} className={'active'}>Article2</a>
            ]}>Menu</MenuButton>

        </Fragment>
    );
};
```

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