@maggioli-design-system/mds-pref-language-item
v1.0.4
Published
mds-pref-language-item 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.
Downloads
49
Readme
mds-pref-language-item
Properties
| Property | Attribute | Description | Type | Default |
| ---------- | ---------- | ---------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | ----------- |
| code
| code
| Specifies the language code based on HTML lang
attribute | ``${Lowercase}${Lowercase}${Lowercase}\|
${Lowercase}${Lowercase} \| undefined
| undefined
|
| selected
| selected
| Specifies if the element is selected | boolean \| undefined
| false
|
Events
| Event | Description | Type |
| --------------------------- | --------------------------------------------- | ----------------------------------------- |
| mdsPrefLanguageItemSelect
| Emits when the component trigger the language | CustomEvent<MdsPrefLanguageEventDetail>
|
Dependencies
Depends on
Graph
graph TD;
mds-pref-language-item --> mds-button
mds-button --> mds-spinner
mds-button --> mds-icon
mds-button --> mds-text
style mds-pref-language-item fill:#f9f,stroke:#333,stroke-width:4px
Built with love @ Gruppo Maggioli from R&D Department