Socket
Socket
Sign inDemoInstall

@rmwc/fab

Package Overview
Dependencies
28
Maintainers
1
Versions
163
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @rmwc/fab

RMWC Floating Action Button component


Version published
Weekly downloads
2.7K
increased by13.31%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 17 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc