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

@exmg/exmg-button

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exmg/exmg-button

Material button including loading (spinner) animation when loading attribute is set to element. This button extends the material @material/mwc-button.

  • 8.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
51
increased by537.5%
Maintainers
0
Weekly downloads
 
Created
Source

<exmg-button> Published on npm

exmg-button

Material button including loading (spinner) animation when loading attribute is set to element. This button extends the material @material/mwc-button.

Installation

npm install @exmg/exmg-button

Example Usage

Disabled

<exmg-button disabled>This button is disabled</exmg-button>

Outlined

<exmg-button outlined>This button is outlined</exmg-button>

Dense

<exmg-button dense>This button is dense</exmg-button>

Unelevated

<exmg-button unelevated>This button is unelevated</exmg-button>

Loading

<exmg-button loading>This button is in loading state</exmg-button>

Progress

<exmg-button progress="45">This button is showing progress</exmg-button>

API

Slots

NameDescription
defaultElement to show within the button

Properties/Attributes

NameTypeDefaultDescription
loadingbooleanfalseWhether or not the button is in loading state
progressnumberundefinedWhether or not the button displays progress
unelevatedbooleanfalseCreates a contained button that is flush with the surface.
outlinedbooleanfalseCreates an outlined button that is flush with the surface.
densebooleanfalseMakes the button text and container slightly smaller.
disabledbooleanfalseDisabled buttons cannot be interacted with and have no visual interaction effect.
fullwidthbooleanfalseWhen true, the button is expanded to fit the entire available space.
iconstring''Icon to display, and aria-label value when label is not defined.
labelstring''Label to display for the button, and aria-label.

Methods

None

Events

None

CSS Custom Properties

TargetVariableValue
Spinner Size--exmg-spinner-size28px
Spinner Color--exmg-spinner-colorgrey
Spinner Stroke Width--exmg-spinner-stroke-width3px
Progress Color--exmg-button-progress-color#89c8ff
Progress Direction--exmg-button-progress-directionrtl

Additional references

Keywords

FAQs

Package last updated on 29 Oct 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