Socket
Book a DemoInstallSign in
Socket

@maggioli-design-system/mds-tab

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maggioli-design-system/mds-tab

mds-tab 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 JavaScript framework you are using.

latest
npmnpm
Version
8.8.0
Version published
Maintainers
3
Created
Source

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'
directiondirectionSets if the component distributes item vertically or horzontally"horizontal" | "vertical" | undefined'horizontal'
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
sizesizeSets the size of the component items nested inside it"md" | "sm" | 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

FAQs

Package last updated on 04 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts