7.3.0 • Published 5 months ago

@maggioli-design-system/mds-banner v7.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

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

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

6.1.0

11 months ago

6.3.0

8 months ago

6.1.1

11 months ago

7.3.0

5 months ago

7.1.0

7 months ago

6.0.0

11 months ago

6.2.0

9 months ago

6.4.0

8 months ago

7.0.0

8 months ago

7.2.1

6 months ago

7.2.0

7 months ago

7.0.2

8 months ago

7.0.1

8 months ago

5.0.4

1 year ago

5.0.3

1 year ago

5.0.2

1 year ago

5.0.1

1 year ago

5.0.0

1 year ago

4.9.6

2 years ago

4.9.5

2 years ago

4.9.4

2 years ago

4.9.3

2 years ago

4.9.2

2 years ago

4.9.1

2 years ago

4.9.0

2 years ago

4.7.0

2 years ago

4.6.0

2 years ago

4.5.4

2 years ago

4.5.3

2 years ago

4.5.2

2 years ago

4.5.0

2 years ago

4.4.0

2 years ago

4.2.2

2 years ago

4.5.1

2 years ago

4.2.0

2 years ago

3.4.0

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

3.3.0

3 years ago

3.2.0

3 years ago

3.1.1

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.1

3 years ago

2.0.0

4 years ago

1.5.4

4 years ago

1.5.6

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago