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

@rmwc/button

Package Overview
Dependencies
Maintainers
1
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/button

RMWC Button component

  • 6.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.9K
decreased by-29.91%
Maintainers
1
Weekly downloads
 
Created
Source

Buttons

Buttons communicate the action that will occur when the user touches them.

  • Module @rmwc/button
  • Import styles:
    • Using CSS Loader
      • import '@rmwc/button/styles';
    • Or include stylesheets
      • '@material/button/dist/mdc.button.css'
      • '@rmwc/@rmwc/icon/icon.css'
      • '@material/ripple/dist/mdc.ripple.css'
  • MDC Docs: https://material.io/develop/web/components/buttons/
<Button label="Button" />
<>
  <Button label="Icon" icon="favorite" />
  <Button label="Trailing" trailingIcon="keyboard_arrow_right" />
  <Button label="Loading" icon={<CircularProgress />} />
</>
<>
  <Button label="Raised" raised />
  <Button label="Unelevated" unelevated />
  <Button label="Outlined" outlined />
  <Button label="Dense" dense />
  <Button label="No Ripple" ripple={false} />
</>
<>
  <Button label="Danger" danger raised />
  <Button label="Danger" danger outlined />
  <Button label="Danger" danger />
</>
<>
  <Button
    label="With Theme"
    raised
    theme={['secondaryBg', 'onSecondary']}
  />
  {/**
    This example uses "accent" to control the color of the Ripple.
    See the documentation on Ripples.
  */}
  <Button
    label="With Theme"
    theme="secondary"
    ripple={{ accent: true }}
  />
</>
<Button>
  {/** Alternatively pass content as children */}
  As Children
</Button>

Button

The Button component.

Props

NameTypeDescription
childrenReact.ReactNodeContent specified as children.
dangerundefined | false | trueUsed to indicate a dangerous action.
denseundefined | false | trueMake the Button dense.
disabledundefined | false | trueMake the button disabled
iconRMWC.IconPropTAn Icon for the Button
labelReact.ReactNode | anyContent specified as a label prop.
outlinedundefined | false | trueMake the button outlined.
raisedundefined | false | trueMake the Button raised.
rippleRipplePropTAdds a ripple effect to the component
trailingIconRMWC.IconPropTA trailing icon for the Button
unelevatedundefined | false | trueMake the button unelevated.

Keywords

FAQs

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