Skip to content
Magma Design System
Label<mds-label>Generated from @maggioli-design-system/magma@2.3.0dist/documentation.json. Encapsulation: shadow.
Magma components are web components: custom elements you write like HTML tags, with any framework or without one. Props configure them, events tell you what happened, methods are functions you call on the element and slots take the content you put inside it.
Props
Set a prop as an HTML attribute in the markup, or as a property from JavaScript. The Attribute column gives the name of the attribute, a dash when it is the same as the property; props without one, such as arrays and functions, are set from JavaScript only. To turn a boolean attribute off, remove it: never write disabled="false".deletable - booleanfalseEnables the cross icon to perform cancel/delete action on element
label - string | undefinedThe label of the component
tone - strong | weakweakSets the tone of the color variant
truncate - all | none | word | undefinedwordTruncates text inside the label or displays it in multiline if needed
typography - caption | detail | tipcaptionSpecifies the typography of the element
variant - amaranth | aqua | blue | error | green | info | lime | orange | orchid | purple | red | sky | success | violet | warning | yellowskySets the theme variant colors
Events
mdsLabelDeletevoidEmits when the label has to be cancelled