Tab<mds-tab>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".animation
-
fade | slide | undefinedslideSets the animation type of the selection transition between mds-tab-item elements
direction
-
horizontal | vertical | undefinedhorizontalSets if the component distributes item vertically or horzontally
fill
-
boolean | undefinedSets if the tab area should fill the entire width
overflow
-
boolean | undefinedSets if the tab area should show an inset shadow when the tabs overflows it’s container
scrollbar
-
boolean | undefinedShows the horizontal scrollbar to maximize accessibility
size
-
md | sm | undefinedSets the size of the component items nested inside it
Events
mdsTabChangeMdsTabEventDetailEmits when a children is changed
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. Content for a named slot goes on a direct child with the name of the slot in its slot attribute, such as slot="content".(default)Add mds-tab-item element/s.
No slot name
contentAdd HTML elements or components, one per mds-tab-item added; or none, when the
items are links (href) to other pages or places and the page, not the component, shows the
content.