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

@arterial/fab

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arterial/fab

Another React Material Floating Action Button

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Arterial FAB

Another React Material FAB

Installation

npm install @arterial/fab

Usage

Styles

Sass
@use "@material/fab/index.scss" as fab;
@include fab.core-styles;
CSS
import '@material/fab/dist/mdc.fab.css';

JSX

import {Fab} from '@arterial/fab';

Regular FAB

<Fab icon="favorite" />

Mini FAB

A mini FAB should be used on smaller screens. Mini FABs can also be used to create visual continuity with other screen elements.

<Fab icon="favorite" mini />

Extended FAB

The extended FAB is wider, and it includes a text label.

<Fab extended icon="add" label="Create" />

Other Variants

Trailing Icon

<Fab extended label="Create" trailingIcon="add" />

Text

Unlike standard FABs, extended FABs don't require an icon.

<Fab extended label="Create" />

Props

Fab

NameTypeDescription
classNamestringClasses to be applied to the root element.
exitedbooleanAnimates FAB out of view.
extendedbooleanEnables a extended variant.
iconstring | nodeIcon to render within root element.
labelstringText to be displayed within the root element.
outlinedbooleanEnables an outlined variant.
minibooleanEnables a mini variant.
ripplebooleanEnables ripple within root element. Defaults to true.
tagstring | objectHTML tag to be applied to the root element. Defaults to button.
trailingIconstring | nodeIcon to render on the right side of the root element.

FAQs

Package last updated on 24 Dec 2020

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