# minimal_fab

> Minimal floating action button with css and javascript

Latest version **1.2.2** (published 2017-10-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install minimal_fab
pnpm add minimal_fab
yarn add minimal_fab
bun add minimal_fab
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2017-10-23 |
| First published | 2017-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | acesmndr |
| Maintainers | acesmndr |
| Keywords | fab |

## Links

- npm: https://www.npmjs.com/package/minimal_fab
- Repository: https://github.com/Acesmndr/minimal_fab
- Homepage: https://github.com/Acesmndr/minimal_fab#readme
- Issues: https://github.com/Acesmndr/minimal_fab/issues
- npm.io page: https://npm.io/package/minimal_fab

## Dependencies (1)

- [sweetalert](https://npm.io/package/sweetalert.md) ^2.0.8

## Recent versions

- 1.2.2 (latest) — 2017-10-23
- 1.2.1 — 2017-10-23
- 1.2.0 — 2017-10-22
- 1.1.0 — 2017-10-22
- 1.0.0 — 2017-10-22

## README

# minimal_fab
[![npm](https://img.shields.io/badge/npm-v1.2.2-green.svg)]()
[![license](https://img.shields.io/npm/l/express.svg)]()

An implementation of Floating Action Button by Google in plain css and javascript.

## Features

 - Fully customizable
 - Light weight
 - Doesn't require jquery or bootstrap
 - Includes a modal dialog to display messages and videos
 
## Installation
```shell
npm i minimal_fab
```

## Usage
```js
let fab = require('minimal_fab');
fabSetup([
    { type: 'text', text: `Here is some text that I'd like to see in a modal dialog` },
    { type: 'video', link: 'https://www.youtube.com/embed/EfvsNZIW970' },
    { type: 'link', link: 'http://youtube.com', title: 'Go to Youtube' },
    { type: 'custom', callback: () => { console.log('I can do almost anything')} },
]);
```
You can view the demo at [acesmndr.github.io/minimal_fab](https://acesmndr.github.io/minimal_fab)
or dig into the demo source code at [Demo Sourcecode](https://github.com/Acesmndr/minimal_fab/tree/gh-pages)

## Webpack configuration
For usage with webpack it requires `style-loader` and `css-loader` packages and the `webpack.config.js` must be set accordingly.
```js
const path = require('path');
module.exports = {
  entry: './main.js',
    module: {
      loaders: [
        { test: /\.css$/, loader: "style-loader!css-loader" }
      ]
    },
  output: {
    path: path.resolve(__dirname, 'build'),
    filename: 'bundle.js'
  }
};
```

## Dependencies

Package | Version | Dev
--- |:---:|:---:
[sweetalert](https://sweetalert.js.org/) | ^2.0.8 | ✖
[font-awesome](http://fontawesome.io/) | * | ✖

** Font awesome needs to be loaded separately **

## Author

Aashish Manandhar <acesmndr@gmail.com> http://github.com/acesmndr

## License

 - **MIT** : http://opensource.org/licenses/MIT

[![forthebadge](http://forthebadge.com/images/badges/uses-js.svg)](http://forthebadge.com)
[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com)

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