You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@material/fab

Package Overview
Dependencies
Maintainers
15
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

14.0.0
latest
Source
npmnpm
Version published
Weekly downloads
507K
-2.82%
Maintainers
15
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

material components

FAQs

Package last updated on 28 Apr 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