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

  • 6.0.0-alpha.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.8K
decreased by-33.56%
Maintainers
1
Weekly downloads
 
Created
Source

Fabs

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

  • Module @rmwc/fab
  • Import styles:
    • import '@material/fab/dist/mdc.fab.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
childrenReact.ReactNodeContent specified as children.
exitedundefined | false | trueAnimates the FAB out of view. When this class is removed, the FAB will return to view.
iconRMWC.IconPropTThe icon for the FAB
labelReact.ReactNode &amp; anyMake the Fab extended with a label.
miniundefined | false | trueMake the Fab smaller.
rippleRipplePropTAdds a ripple effect to the component
trailingIconRMWC.IconPropTA trialing icon for the FAB

Keywords

FAQs

Package last updated on 23 Nov 2019

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