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

@material/fab

Package Overview
Dependencies
Maintainers
19
Versions
1700
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/fab

The Material Components for the web floating action button component

  • 5.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
703K
decreased by-8.7%
Maintainers
19
Weekly downloads
 
Created

What is @material/fab?

@material/fab is a Material Design implementation of the Floating Action Button (FAB) component. It provides a way to create floating action buttons that adhere to Material Design guidelines, offering a consistent and visually appealing user experience.

What are @material/fab's main functionalities?

Basic Floating Action Button

This code creates a basic floating action button with a 'favorite' icon. The button uses the 'mdc-fab' class to apply the Material Design styles.

<button class="mdc-fab" aria-label="Favorite">
  <span class="mdc-fab__icon material-icons">favorite</span>
</button>

Mini Floating Action Button

This code creates a mini floating action button with an 'edit' icon. The 'mdc-fab--mini' class makes the button smaller than the standard FAB.

<button class="mdc-fab mdc-fab--mini" aria-label="Edit">
  <span class="mdc-fab__icon material-icons">edit</span>
</button>

Extended Floating Action Button

This code creates an extended floating action button with an 'add' icon and a label. The 'mdc-fab--extended' class makes the button wider to accommodate the label.

<button class="mdc-fab mdc-fab--extended">
  <span class="mdc-fab__icon material-icons">add</span>
  <span class="mdc-fab__label">Add</span>
</button>

Other packages similar to @material/fab

Keywords

FAQs

Package last updated on 25 Feb 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