Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@maggioli-design-system/mds-label

Package Overview
Dependencies
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maggioli-design-system/mds-label

mds-label 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 JavaScript framework you are using.

latest
npmnpm
Version
3.6.4
Version published
Maintainers
3
Created
Source

mds-label

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 JavaScript framework you are using.

Properties

PropertyAttributeDescriptionTypeDefault
deletabledeletableEnables the cross icon to perform cancel/delete action on elementbooleanfalse
labelActionlabel-actionSpecifies the ARIA label for remove elementstring | undefined'Rimuovi'
tonetoneSets the tone of the color variant"quiet" | "strong" | "weak"'quiet'
truncatetruncateTruncates text inside the label or displays it in multiline if needed"all" | "none" | "word" | undefinedundefined
typographytypographySpecifies the typography of the element"action" | "caption" | "detail" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "hack" | "label" | "option" | "paragraph" | "snippet" | "tip"'caption'
variantvariantSets the theme variant colors"amaranth" | "aqua" | "blue" | "dark" | "error" | "green" | "info" | "light" | "lime" | "orange" | "orchid" | "sky" | "success" | "violet" | "warning" | "yellow"'sky'

Events

EventDescriptionType
mdsLabelDeleteEmits when the label has to be cancelledCustomEvent<void>

Methods

updateLang() => Promise<void>

Returns

Type: Promise<void>

Slots

SlotDescription
"default"Add text string to this slot, avoid to add HTML elements or components here.

CSS Custom Properties

NameDescription
--mds-label-backgroundSets the background-color of the component
--mds-label-colorSets the text color of the component
--mds-label-icon-colorSets the color of the icon
--mds-label-selection-backgroundSets the selection background color of the text
--mds-label-selection-colorSets the selection color of the text

Dependencies

Depends on

Graph

graph TD;
  mds-label --> mds-text
  mds-label --> mds-button
  mds-button --> mds-spinner
  mds-button --> mds-icon
  mds-button --> mds-text
  style mds-label fill:#f9f,stroke:#333,stroke-width:4px

Built with love @ Gruppo Maggioli from R&D Department

FAQs

Package last updated on 04 Jul 2025

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