# react-floating-btn-menu

> A Customizable Material floating button menu implementation made with styled-component & react.

Latest version **1.0.16** (published 2018-05-29) · 0 weekly downloads

## Install

```sh
npm install react-floating-btn-menu
pnpm add react-floating-btn-menu
yarn add react-floating-btn-menu
bun add react-floating-btn-menu
```

## 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.0.16 |
| Published | 2018-05-29 |
| First published | 2018-05-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 393.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | damn_handsome |
| Keywords | react, ui, floating button, styled-components |

## Links

- npm: https://www.npmjs.com/package/react-floating-btn-menu
- npm.io page: https://npm.io/package/react-floating-btn-menu

## Dependencies (7)

- [react](https://npm.io/package/react.md) ^16.3.2
- [yargs](https://npm.io/package/yargs.md) ^8.0.1
- [react-dom](https://npm.io/package/react-dom.md) ^15.5.4
- [prop-types](https://npm.io/package/prop-types.md) ^15.5.8
- [react-icons](https://npm.io/package/react-icons.md) ^2.2.3
- [react-hot-loader](https://npm.io/package/react-hot-loader.md) next
- [styled-components](https://npm.io/package/styled-components.md) 1.4.5

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@mesalvo/react-ui](https://npm.io/package/@mesalvo/react-ui.md) — 1.7K weekly downloads

## Recent versions

- 1.0.16 (latest) — 2018-05-29
- 1.0.15 — 2018-05-29
- 1.0.14 — 2018-05-25
- 1.0.13 — 2018-05-25
- 1.0.12 — 2018-05-23
- 1.0.11 — 2018-05-23
- 1.0.10 — 2018-05-23
- 1.0.9 — 2018-05-16

## README

# React Floating Button Menu

A Material floating button menu implementation made with styled-component &amp; react

Inspired by [react-material-floating-button](https://github.com/nobitagit/react-material-floating-button) and [react-floating-button-menu](https://github.com/ifndefdeadmau5/react-floating-button-menu) with added labels to buttons.

## Installation

> npm install react-floating-btn-menu --save

## Demo

See the [project page](https://ifndefdeadmau5.github.io/react-floating-button-menu/)

<img src="https://media.giphy.com/media/3o7bu7E67NHt6tOuKA/giphy.gif">

## Usage

You can customize opening direction, speed, and styles of each button via props. Other options will be added soon
```javascript
import { FloatingMenu, MainButton, ChildButton } from 'react-floating-button-menu/build';
import MdAdd from 'react-icons/lib/md/add';
import MdClose from 'react-icons/lib/md/close';

...
  <FloatingMenu slideSpeed={500} direction="left" size={{ main: 56, child: 40 }}>
    <MainButton
      iconResting={MdAdd}
      iconActive={MdClose}
      iconColor="white"
      backgroundColor="black"
    />
    <ChildButton
      iconButton={MdAdd}
      iconColor="black"
      order={1}
      backgroundColor="white"
      label ="Add"
    />
    <ChildButton
      iconButton={MdAdd}
      iconColor="black"
      order={2}
      backgroundColor="white"
      label="Add another"
    />
  </FloatingMenu>
...
```

## Try the Demos Locally
```sh
git clone https://github.com/ifndefdeadmau5/react-floating-btn-menu.git
cd react-floating-button-menu
npm install
cd docs
npm install
npm start
```

## Contributing
Please submit issues.

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