@maggioli-design-system/mds-tab
v6.8.7
Published
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 JavaScirpt framework you are using.
Downloads
1,209
Readme
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 JavaScirpt framework you are using.
Events
| Event | Description | Type |
| -------------- | -------------------------------- | -------------------------------- |
| mdsTabChange
| Emits when a children is changed | CustomEvent<MdsTabEventDetail>
|
Slots
| Slot | Description |
| ----------- | ---------------------------------------------------------------- |
| "content"
| Add HTML elements
or components
, one per mds-tab-item added. |
| "default"
| Add mds-tab-item
element/s. |
Shadow Parts
| Part | Description |
| ------------ | ----------- |
| "contents"
| |
| "tabs"
| |
CSS Custom Properties
| Name | Description |
| --------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| --mds-tab-duration
| Sets the animation duration on how the contents height is resized when the component switch from a content to another one |
| --mds-tab-timing-function
| Sets the animation timing function on how the contents height is resized when the component switch from a content to another one |
Dependencies
Used by
- mds-input-upload
- mds-pref-animation
- mds-pref-consumption
- mds-pref-contrast
- mds-pref-language-nav
- mds-pref-theme
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-nav --> 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