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

@material/react-fab

Package Overview
Dependencies
Maintainers
12
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/react-fab

Material Components React Floating Action Button (FAB)

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
135
decreased by-51.61%
Maintainers
12
Weekly downloads
 
Created
Source

React Floating Action Button

A React version of an MDC Floating Action Button.

Installation

npm install @material/react-fab

Usage

JSX Structure

The Fab can be used with the span, i, img or svg elements. It can also be used with the Material Icon react component.

<Fab>
  <span className="material-icons">favorite</span>
</Fab>

<Fab>
  <i className="material-icons">favorite</i>
</Fab>

<Fab>
  <svg xmlns="http://www.w3.org/2000/svg" className="material-icons" viewBox="0 0 24 24">
  ...
  </svg>
</Fab>

<Fab>
  <img className="material-icons" src="/images/ic_button_24px.svg"/>
</Fab>

<Fab>
  <MaterialIcon icon="favorite"/>
</Fab>

Props

Prop NameTypeDescription
classNameStringClasses to be applied to the root element.
minin/aEnables the mini variant.

Sass Mixins

Sass mixins may be available to customize various aspects of the components. Please refer to the MDC Web repository for more information on what mixins are available, and how to use them.

Advanced Sass Mixins

Keywords

FAQs

Package last updated on 25 Jun 2018

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