npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@exmg/exmg-button

v8.2.3

Published

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

Downloads

266

Readme

<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

| Name | Description | | --------- | --------------------------------- | | default | Element to show within the button |

Properties/Attributes

| Name | Type | Default | Description | | ------------ | --------- | ----------- | --------------------------------------------------------------------------------- | | loading | boolean | false | Whether or not the button is in loading state | | progress | number | undefined | Whether or not the button displays progress | | unelevated | boolean | false | Creates a contained button that is flush with the surface. | | outlined | boolean | false | Creates an outlined button that is flush with the surface. | | dense | boolean | false | Makes the button text and container slightly smaller. | | disabled | boolean | false | Disabled buttons cannot be interacted with and have no visual interaction effect. | | fullwidth | boolean | false | When true, the button is expanded to fit the entire available space. | | icon | string | '' | Icon to display, and aria-label value when label is not defined. | | label | string | '' | Label to display for the button, and aria-label. |

Methods

None

Events

None

CSS Custom Properties

| Target | Variable | Value | | :------------------: | :------------------------------: | :-----: | | Spinner Size | --exmg-spinner-size | 28px | | Spinner Color | --exmg-spinner-color | grey | | Spinner Stroke Width | --exmg-spinner-stroke-width | 3px | | Progress Color | --exmg-button-progress-color | #89c8ff | | Progress Direction | --exmg-button-progress-direction | rtl |

Additional references