📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@maggioli-design-system/mds-banner

Package Overview
Dependencies
Maintainers
3
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maggioli-design-system/mds-banner

This is mds-banner web component from Maggioli Design System Magma.

7.2.0
latest
npm
Version published
Maintainers
3
Created
Source

mds-banner

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
cockadecockadeShows a decoration around the banner iconboolean | undefinedtrue
deletabledeletableShows the cross icon to perform cancel/delete action on elementboolean | undefinedundefined
headlineheadlineThe title on the top of the bannerstring | undefinedundefined
iconiconAn icon displayed at the top left of the bannerstring | undefinedundefined
tonetoneSets the tone of the color variant"quiet" | "strong" | "weak" | undefined'weak'
variantvariantSets the theme variant colors"ai" | "dark" | "error" | "info" | "light" | "primary" | "success" | "warning" | undefined'light'

Events

EventDescriptionType
mdsBannerCloseEmits when the url view is closedCustomEvent<void>

Methods

updateLang() => Promise<void>

Returns

Type: Promise<void>

Slots

SlotDescription
"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.

CSS Custom Properties

NameDescription
--mds-banner-backgroundSets the background-color of the component
--mds-banner-close-icon-hover-backgroundSets the background color of the close icon when the mouse is over it
--mds-banner-cockade-backgroundWhen cockade attribute is set, the icon will be wrapper with a colored area, this is it's background
--mds-banner-cockade-distanceWhen cockade attribute is set, the icon will be wrapper with a colored area, this is it's icon color
--mds-banner-colorSets the text color of the component
--mds-banner-gapSets gap between banner elements
--mds-banner-headline-colorThe text color of the headline
--mds-banner-icon-colorSets the close icon fill color of the component
--mds-banner-radiusSets the border-radius of the component
--mds-banner-shadowSets the box-shadow of the component

Dependencies

Used by

  • mds-policy-ai

Depends on

Graph

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
  mds-policy-ai --> mds-banner
  style mds-banner fill:#f9f,stroke:#333,stroke-width:4px

Built with love @ Gruppo Maggioli from R&D Department

FAQs

Package last updated on 18 Apr 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