
Product
Announcing Socket Certified Patches: One-Click Fixes for Vulnerable Dependencies
A safer, faster way to eliminate vulnerabilities without updating dependencies
@maggioli-design-system/mds-banner
Advanced tools
This is mds-banner web component from Maggioli Design System Magma.
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.
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
deletable | deletable | Shows the cross icon to perform cancel/delete action on element | boolean | undefined | undefined |
headline | headline | The title on the top of the banner | string | undefined | undefined |
icon | icon | An icon displayed at the top left of the banner | string | undefined | undefined |
tone | tone | Sets the tone of the color variant | "quiet" | "strong" | "weak" | undefined | 'weak' |
variant | variant | Sets the theme variant colors | "dark" | "error" | "info" | "light" | "primary" | "success" | "warning" | undefined | 'light' |
| Event | Description | Type |
|---|---|---|
mdsBannerClose | Emits when the url view is closed | CustomEvent<void> |
updateLang() => Promise<void>Type: Promise<void>
| Slot | Description |
|---|---|
"action" | Add HTML elements or components, it is recommended to use mds-button element. |
"default" | Add text string, HTML elements or components to this slot. |
| Name | Description |
|---|---|
--mds-banner-background | Sets the background-color of the component |
--mds-banner-close-icon-hover-background | Sets the background color of the close icon when the mouse is over it |
--mds-banner-color | Sets the text color of the component |
--mds-banner-gap | Sets gap between banner elements |
--mds-banner-icon-color | Sets the close icon fill color of the component |
--mds-banner-radius | Sets the border-radius of the component |
--mds-banner-shadow | Sets the box-shadow of the component |
graph TD;
mds-banner --> mds-icon
mds-banner --> mds-text
mds-banner --> mds-button
mds-button --> mds-spinner
mds-button --> mds-icon
mds-button --> mds-text
style mds-banner fill:#f9f,stroke:#333,stroke-width:4px
Built with love @ Gruppo Maggioli from R&D Department
FAQs
Did you know?

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.

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.