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

@rmwc/fab

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/fab

RMWC Floating Action Button component

  • 14.3.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Fabs

A floating action button (FAB) represents the primary action of a screen.

  • Module @rmwc/fab
  • Import styles:
    • Using CSS Loader
      • import '@rmwc/fab/styles';
    • Or include stylesheets
      • '@material/fab/dist/mdc.fab.css'
      • '@rmwc/icon/icon.css'
      • '@material/ripple/dist/mdc.ripple.css'
  • MDC Docs: https://material.io/develop/web/components/buttons/floating-action-buttons/
<Fab icon="favorite" />
<Fab icon="favorite" mini />
<>
  <Fab icon="add" label="Create" />
  <Fab trailingIcon="add" label="Create" />
  <Fab label="Label only" />
</>
<>
  <Fab icon="favorite_outline" theme={['primaryBg', 'onPrimary']} />
  <Fab
    icon="delete"
    style={{ backgroundColor: 'var(--mdc-theme-error)' }}
    theme={['onError']}
  />
</>

Fab

A floating action button component

Props

NameTypeDescription
childrenReactNodeContent specified as children.
exitedbooleanAnimates the FAB out of view. When this class is removed, the FAB will return to view.
iconIconPropTThe icon for the FAB
labelanyMake the Fab extended with a label.
minibooleanMake the Fab smaller.
rippleRipplePropTAdds a ripple effect to the component
trailingIconIconPropTA trialing icon for the FAB

Keywords

FAQs

Package last updated on 25 Sep 2024

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