Skip to content
Magma Design System
Chip<mds-chip>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".clickable - boolean | undefinedAdds ARIA support to the element if has interaction
deletable - boolean | undefinedShows the cross icon to perform cancel/delete action on element
disabled - boolean | undefinedfalseSets the component disabled status
icon - string | undefinedThe icon displayed to the left of the component’s label
label (required) - stringThe label displayed to the right of the component’s icon
selectable - boolean | undefinedfalseSets if the component change is status to selected when is clicked
selected - boolean | undefinedSets the component selected
tone - strong | weak | undefinedstrongSets the color variant tone of the component
variant - ai | amaranth | aqua | blue | dark | error | green | info | lime | orange | orchid | primary | purple | red | secondary | sky | success | violet | warning | yellow | undefinedprimarySets the color variant of the component
Events
mdsChipClickLabelMdsChipEventEmits when the component’s label is clicked
mdsChipDeleteMdsChipEventEmits when the component’s delete button is clicked
mdsChipSelectMdsChipEventEmits when the component’s label is clicked and when selectable attribute is set to true