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

@maggioli-design-system/mds-button

v4.17.5

Published

mds-button is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.

Downloads

3,016

Readme

mds-button

This is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.

Properties

| Property | Attribute | Description | Type | Default | | -------------- | --------------- | --------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | ----------- | | active | active | Specifies if the button is active or not | boolean | undefined | | autoFocus | auto-focus | Specifies if the component is focused when is loaded on the viewport | boolean | undefined | | await | await | Specifies if the button is awaiting for a response | boolean | undefined | | disabled | disabled | Specifies if the component is disabled or not | boolean | undefined | | href | href | Specifies the URL target of the button | string \| undefined | undefined | | icon | icon | The icon displayed in the button | string \| undefined | undefined | | iconPosition | icon-position | Specifies the horizontal position of the icon displayed in the button | "left" \| "right" \| undefined | 'left' | | size | size | Specifies the size for the button | "lg" \| "md" \| "sm" \| "xl" | 'md' | | target | target | Specifies the target of the URL, if self or blank | "blank" \| "self" | 'self' | | tone | tone | Specifies the tone variant for the button | "ghost" \| "quiet" \| "strong" \| "weak" \| undefined | 'strong' | | type | type | The type of the button element | "a" \| "button" \| "reset" \| "submit" \| undefined | 'submit' | | variant | variant | Specifies the color variant for the button | "dark" \| "error" \| "info" \| "light" \| "primary" \| "success" \| "warning" \| undefined | 'primary' |

Slots

| Slot | Description | | ---------------- | --------------------------------------------------------------------------------------------- | | "default" | Add text string to this slot, avoid to add HTML elements or components here. | | "notification" | Add HTML elements or components, it is recommended to use mds-notification element. |

Shadow Parts

| Part | Description | | --------- | ----------------------------- | | "icon" | The icon inside the component | | "label" | |

CSS Custom Properties

| Name | Description | | ----------------------------- | -------------------------------------------------------------------------------------------------------- | | --mds-button-await-duration | Sets the duration of the rotation of the spinner await component | | --mds-button-background | Sets the background-color of the component | | --mds-button-border-color | Sets the border-color of the component | | --mds-button-color | Sets the text color of the component | | --mds-button-gap | Sets the distance betwen element inside the components, use it instead of setting gap property directly. | | --mds-button-icon-color | Sets the icon color of the component | | --mds-button-radius | Sets the border-radius of the component |

Dependencies

Used by

Depends on

Graph

graph TD;
  mds-button --> mds-spinner
  mds-button --> mds-icon
  mds-button --> mds-text
  mds-banner --> mds-button
  mds-breadcrumb --> mds-button
  mds-chip --> mds-button
  mds-file-preview --> mds-button
  mds-header-bar --> mds-button
  mds-horizontal-scroll --> mds-button
  mds-input --> mds-button
  mds-input-upload --> mds-button
  mds-label --> mds-button
  mds-modal --> mds-button
  mds-note --> mds-button
  mds-push-notification --> mds-button
  mds-tab-item --> mds-button
  mds-url-view --> mds-button
  style mds-button fill:#f9f,stroke:#333,stroke-width:4px

Built with love @ Gruppo Maggioli from R&D Department