Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bulma-fab-button

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bulma-fab-button

FAB (Floating Action Buttons) for Bulma

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Example in the playground

bulma-fab-button

A Bulma's extension for FABs (Floating Action Buttons).

Quick start

npm i bulma-fab-button

Import

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

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

Usage

Basic usage:

<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:

<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):

<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):

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

// 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';

Code copyright 2020 José Olórtegui. Code released under the MIT license.

Keywords

FAQs

Package last updated on 26 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc