Socket
Socket
Sign inDemoInstall

@maggioli-design-system/mds-button

Package Overview
Dependencies
13
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @maggioli-design-system/mds-button

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.


Version published
Weekly downloads
1.1K
increased by13.56%
Maintainers
2
Install size
70.2 MB
Created
Weekly downloads
 

Readme

Source

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

PropertyAttributeDescriptionTypeDefault
activeactiveSpecifies if the button is active or notbooleanundefined
autoFocusauto-focusSpecifies if the component is focused when is loaded on the viewportbooleanundefined
awaitawaitSpecifies if the button is awaiting for a responsebooleanundefined
disableddisabledSpecifies if the component is disabled or notbooleanundefined
hrefhrefSpecifies the URL target of the buttonstring | undefinedundefined
iconiconThe icon displayed in the buttonstring | undefinedundefined
iconPositionicon-positionSpecifies the horizontal position of the icon displayed in the button"left" | "right" | undefined'left'
sizesizeSpecifies the size for the button"lg" | "md" | "sm" | "xl"'md'
targettargetSpecifies the target of the URL, if self or blank"blank" | "self"'self'
tonetoneSpecifies the tone variant for the button"ghost" | "quiet" | "strong" | "weak" | undefined'strong'
typetypeThe type of the button element"a" | "button" | "reset" | "submit" | undefined'submit'
variantvariantSpecifies the color variant for the button"dark" | "error" | "info" | "light" | "primary" | "success" | "warning" | undefined'primary'

Slots

SlotDescription
"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

PartDescription
"icon"The icon inside the component
"label"

CSS Custom Properties

NameDescription
--mds-button-await-durationSets the duration of the rotation of the spinner await component
--mds-button-backgroundSets the background-color of the component
--mds-button-border-colorSets the border-color of the component
--mds-button-colorSets the text color of the component
--mds-button-gapSets the distance betwen element inside the components, use it instead of setting gap property directly.
--mds-button-icon-colorSets the icon color of the component
--mds-button-radiusSets 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

FAQs

Last updated on 18 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc