Skip to content
Magma Design System
Tab bar item<mds-tab-bar-item>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".icon - stringThe icon displayed in the tab bar item.
label - string | undefinedSets the label of the tab bar item
selected - booleanSpecifies if the component is selected or not
typography - option | tip | undefinedtipSpecifies the typography of the element
Events
mdsTabBarItemSelectstringEmits when the component is selected
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. When the component has a label prop too, prefer the prop.(default)Deprecated, use the label property instead. Add text string to this slot, avoid to add HTML elements or components here.
No slot name