Socket
Socket
Sign inDemoInstall

@arterial/fab

Package Overview
Dependencies
15
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @arterial/fab

Another React Material Floating Action Button


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 24 Dec 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc