Pref language<mds-pref-language>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".set
-
stringautoSpecifies the language code based on HTML lang attributeA string representing the language version as defined in {@link https://datatracker.ietf.org/doc/html/rfc5646 RFC 5646: Tags for Identifying Languages (also known as BCP 47)}.Examples of valid language codes include "en", "en-US", "fr", "fr-FR", "es-ES", etc.Supported languages are Italiano, English, Español, ελληνικά
size
-
md | sm | undefinedSets the size of the component items nested inside it
Events
mdsPrefChangeMdsPrefChangeEventDetailEmits when the component is triggered
mdsPrefLanguageChangeMdsPrefLanguageEventDetailEmits when the component changes the language selected from the click event of the dropdown list item
Slots
Slots take the content you write between the tags of the component. The default slot, the one without a name, accepts plain text, unless its description says otherwise.(default)Add mds-pref-language-item element/s.