Socket
Socket
Sign inDemoInstall

@maggioli-design-system/mds-banner

Package Overview
Dependencies
14
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
780
increased by7.88%
Maintainers
2
Created
Weekly downloads
 

Readme

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 JavaScirpt framework you are using.

Properties

PropertyAttributeDescriptionTypeDefault
closeLabelclose-labelSets the cross icon accessibility label to perform close action on element"Annulla" | undefined'Annulla'
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"dark" | "error" | "info" | "light" | "primary" | "success" | "warning" | undefined'light'

Events

EventDescriptionType
mdsBannerCloseEmits when the url view is closedCustomEvent<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-colorSets the text color of the component
--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

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

Built with love @ Gruppo Maggioli from R&D Department

FAQs

Last updated on 18 Apr 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc