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

@material/button

Package Overview
Dependencies
Maintainers
1
Versions
1701
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/button

The Material Components for the web button component

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
737K
decreased by-11.5%
Maintainers
1
Weekly downloads
 
Created
Source

MDC Button

The MDC Button component is a spec-aligned button component adhering to the Material Design button requirements. It works without JavaScript with basic functionality for all states. If you initiate the JavaScript object for a button, then it will be enhanced with ripple effects. (Not yet implemented)

Installation

npm install --save @material/button

Usage

Flat

<button class="mdc-button">
  Flat button
</button>

Colored

<button class="mdc-button mdc-button--accent">
  Colored button
</button>

Raised

<button class="mdc-button mdc-button--raised">
  Raised button
</button>

Disabled

<button class="mdc-button mdc-button--raised" disabled>
  Raised disabled button
</button>

Classes

Block

The block class is mdc-button. This defines the top-level button element.

Element

The button component has no inner elements.

Modifier

The provided modifiers are:

ClassDescription
mdc-button--denseCompresses the button text to make it slightly smaller.
mdc-button--raisedElevates the button and creates a colored background.
mdc-button--compactReduces the amount of horizontal padding in the button.
mdc-button--primaryColors the button with the primary color.
mdc-button--accentColors the button with the accent color.

FAQs

Package last updated on 15 Dec 2016

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