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.
Property |
Attribute |
Description |
Type |
Default |
controls |
controls |
Specifies the viewport which will display navigation controls |
"all" | "desktop" | "large" | "none" | "tablet" | "tv" | "wide" | "xlarge" | undefined |
'desktop' |
scrollbar |
scrollbar |
Specifies the box’s snap position as an alignment of its snap area |
boolean | undefined |
undefined |
snap |
snap |
Specifies the box’s snap position as an alignment of its snap area |
"center" | "end" | "none" | "start" | undefined |
'start' |
Slot |
Description |
"default" |
Add text string , HTML elements or components to this slot. |
Part |
Description |
"content" |
|
Name |
Description |
--mds-horizontal-scroll-background |
Sets the background-color of the component |
--mds-horizontal-scroll-scrollbar-margin |
Sets the margin of the browser scroll bar (if supported) |
--mds-horizontal-scroll-scrollbar-radius |
Sets the border-radius of the browser scroll bar (if supported) |
--mds-horizontal-scroll-scrollbar-size |
Sets the height and width of the browser scroll bar (if supported) |
--mds-horizontal-scroll-scrollbar-thumb-background |
Sets the background-color of the browser scroll bar thumb (if supported) |
--mds-horizontal-scroll-scrollbar-track-background |
Sets the background-color of the browser scroll bar track (if supported) |
graph TD;
mds-horizontal-scroll --> mds-button
mds-button --> mds-spinner
mds-button --> mds-icon
mds-button --> mds-text
style mds-horizontal-scroll fill:#f9f,stroke:#333,stroke-width:4px
Built with love @ Gruppo Maggioli from R&D Department