# bulma-fab-button

> FAB (Floating Action Buttons) for Bulma

Latest version **1.1.0** (published 2022-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install bulma-fab-button
pnpm add bulma-fab-button
yarn add bulma-fab-button
bun add bulma-fab-button
```

## 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.1.0 |
| Published | 2022-02-26 |
| First published | 2020-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | José Olórtegui |
| Maintainers | olrtg |
| Keywords | css, bulma, fab, button, floating, action |

## Links

- npm: https://www.npmjs.com/package/bulma-fab-button
- Repository: https://github.com/olrtg/bulma-fab-button
- Homepage: https://github.com/olrtg/bulma-fab-button#readme
- Issues: https://github.com/olrtg/bulma-fab-button/issues
- npm.io page: https://npm.io/package/bulma-fab-button

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2022-02-26
- 1.0.1 — 2020-08-29
- 1.0.0 — 2020-08-29

## README

![Example in the playground](./screenshot.png)

<h3 align="center">
  bulma-fab-button
</h3>

<p align="center">
  A Bulma's extension for FABs (Floating Action Buttons).
</p>

## Quick start

```shell
npm i bulma-fab-button
```

## Import

You can import the .css or .sass file into your project after importing Bulma:

```scss
@import '../node_modules/bulma-fab-button/src/bulma-fab-button.sass';
```

## Usage

Basic usage:

```html
<a href="#" class="button is-floating is-primary">
  <i class="fas fa-shopping-cart"></i>
</a>
```

You can use colors like any other Bulma component:

```html
<a href="#" class="button is-floating is-primary">
  <i class="fas fa-shopping-cart"></i>
</a>

<a href="#" class="button is-floating is-dark">
  <i class="fas fa-shopping-cart"></i>
</a>

<a href="#" class="button is-floating is-success">
  <i class="fas fa-shopping-cart"></i>
</a>

<a href="#" class="button is-floating is-info">
  <i class="fas fa-shopping-cart"></i>
</a>

<a href="#" class="button is-floating is-danger">
  <i class="fas fa-shopping-cart"></i>
</a>

<a href="#" class="button is-floating is-light">
  <i class="fas fa-shopping-cart"></i>
</a>
```

Also size modifiers (`.is-large`, `.is-small`):

```html
<a href="#" class="button is-floating is-small">
  <i class="fas fa-shopping-cart"></i>
</a>

<a href="#" class="button is-floating is-large">
  <i class="fas fa-shopping-cart"></i>
</a>
```

And position modifiers (`.is-left`, `.is-centered`, `.is-right`):

```html
<a href="#" class="button is-floating is-left">
  <i class="fas fa-shopping-cart"></i>
</a>

<a href="#" class="button is-floating is-centered">
  <i class="fas fa-shopping-cart"></i>
</a>

<a href="#" class="button is-floating is-right">
  <i class="fas fa-shopping-cart"></i>
</a>
```

## Customize

> For options available, take a look at the `_initial-variables.sass` file.

```scss
// Customize
$fab-circle-size: 4rem; // default: 3.75rem
$fab-h-space: 1rem; // default: 1.25rem
$fab-v-space: 1rem; // default: 1.25rem

// Then import
@import '../node_modules/bulma-fab-button/src/bulma-fab-button.sass';
```

## Copyright and license

Code copyright 2020 José Olórtegui. Code released under [the MIT license](https://github.com/olrtg/bulma-fab-button/blob/master/LICENSE).

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