8.6.3 • Published 5 months ago

@maggioli-design-system/mds-tab v8.6.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

mds-tab

This is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.

Properties

PropertyAttributeDescriptionTypeDefault
animationanimationSets the animation type of the selection transition between mds-tab-item elements"fade" \| "slide" \| undefined'slide'
fillfillSets if the tab area should fill the entire widthboolean \| undefinedundefined
overflowoverflowSets if the tab area should show an inset shadow when the tabs overflows it's containerboolean \| undefinedundefined
scrollbarscrollbarShows the horizontal scrollbar to maximize accessibilityboolean \| undefinedundefined

Events

EventDescriptionType
mdsTabChangeEmits when a children is changedCustomEvent<MdsTabEventDetail>

Slots

SlotDescription
"content"Add HTML elements or components, one per mds-tab-item added.
"default"Add mds-tab-item element/s.

Shadow Parts

PartDescription
"contents"Selects the container of the tabbed contents elements.
"slider"Selects the slider element which is visible when attribute animation is set to slide.
"tabs"Selects the container of mds-tab-item list elements.

CSS Custom Properties

NameDescription
--mds-tab-item-default-backgroundSets the background-color of mds-tab-item or mds-tab::part(slider) depending on attribute animation
--mds-tab-item-default-colorSets the color of mds-tab-item or mds-tab::part(slider) depending on attribute animation
--mds-tab-item-default-shadowSets the box-shadow of mds-tab-item or mds-tab::part(slider) depending on attribute animation
--mds-tab-item-hover-backgroundSets the background-color when the mouse is over of mds-tab-item or mds-tab::part(slider) depending on attribute animation
--mds-tab-item-hover-colorSets the color when the mouse is over of mds-tab-item or mds-tab::part(slider) depending on attribute animation
--mds-tab-item-hover-shadowSets the box-shadow when the mouse is over of mds-tab-item or mds-tab::part(slider) depending on attribute animation
--mds-tab-item-radiusSets the border-radius of mds-tab-item or mds-tab::part(slider) depending on attribute animation.
--mds-tab-item-selected-backgroundSets the background-color when the item is selected of mds-tab-item or mds-tab::part(slider) depending on attribute animation
--mds-tab-item-selected-colorSets the color when the item is selected of mds-tab-item or mds-tab::part(slider) depending on attribute animation
--mds-tab-item-selected-shadowSets the box-shadow when the item is selected of mds-tab-item or mds-tab::part(slider) depending on attribute animation
--mds-tab-item-transition-durationSets the animation duration on how the contents height is resized when the component switch from a content to another one
--mds-tab-item-transition-timing-functionSets the animation timing function on how the contents height is resized when the component switch from a content to another one
--mds-tab-scroll-scrollbar-marginSets the margin of the browser scroll bar (if supported)
--mds-tab-scroll-scrollbar-radiusSets the border-radius of the browser scroll bar (if supported)
--mds-tab-scroll-scrollbar-sizeSets the height and width of the browser scroll bar (if supported)
--mds-tab-scroll-scrollbar-thumb-backgroundSets the background-color of the browser scroll bar thumb (if supported)
--mds-tab-scroll-scrollbar-track-backgroundSets the background-color of the browser scroll bar track (if supported)
--mds-tab-slide-delaySets the sliding delay of the tabs
--mds-tab-tabs-backgroundSets the background-color of mds-tab::part(tabs)
--mds-tab-tabs-gapSets the gap of mds-tab::part(tabs)
--mds-tab-tabs-overflow-shadowSets the overflow shadow effect
--mds-tab-tabs-overflow-shadow-sizeSets overflow shadow size
--mds-tab-tabs-paddingSets the padding of mds-tab::part(tabs)
--mds-tab-tabs-radiusSets the border-radius of mds-tab::part(tabs)
--mds-tab-tabs-wrapper-marginSets the margin of tabs wrapper
--mds-tab-tabs-wrapper-outline-opacitySets the opacity of outline border which holds

Dependencies

Used by

Graph

graph TD;
  mds-input-upload --> mds-tab
  mds-pref-animation --> mds-tab
  mds-pref-consumption --> mds-tab
  mds-pref-contrast --> mds-tab
  mds-pref-language --> mds-tab
  mds-pref-theme --> mds-tab
  style mds-tab fill:#f9f,stroke:#333,stroke-width:4px

Built with love @ Gruppo Maggioli from R&D Department

8.6.3

5 months ago

8.4.1

8 months ago

8.4.0

8 months ago

8.6.1

5 months ago

8.4.3

7 months ago

8.6.0

6 months ago

8.4.2

8 months ago

8.1.0

9 months ago

8.5.0

7 months ago

8.3.1

8 months ago

8.5.1

7 months ago

7.0.0

11 months ago

7.0.1

11 months ago

8.0.0

10 months ago

8.2.0

9 months ago

6.8.7

1 year ago

6.8.3

1 year ago

6.8.5

1 year ago

6.8.4

1 year ago

6.8.2

1 year ago

6.8.1

1 year ago

6.8.0

1 year ago

6.7.5

2 years ago

6.7.4

2 years ago

6.7.3

2 years ago

6.7.2

2 years ago

6.7.1

2 years ago

6.7.0

2 years ago

6.5.0

2 years ago

6.6.0

2 years ago

6.3.4

2 years ago

6.3.3

2 years ago

6.3.2

2 years ago

6.1.0

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

6.3.0

2 years ago

6.1.2

2 years ago

6.2.0

2 years ago

6.1.1

2 years ago

6.3.1

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

4.3.0

2 years ago

4.2.0

2 years ago

3.1.2

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

3.1.1

3 years ago

2.0.2

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

4 years ago