Banner

Notify the user without blocking the interaction on the UI.

Import

import '@amber-ds/components/banner';

Markup

<amber-banner>
  Content here
</amber-banner>

Attributes

Name Type Default value Description
active Boolean false If the element is visible
title String Title Title of the banner, if empty the header will not be rendered
labels String 'First,Second' Comma-separated button labels
state String '' Visual state, options are: empty, success, error, warning, info

Methods

Name Arguments Return Description
.show() N/A N/A Display the banner and set the active attribute to true
.hide() N/A N/A Hide the banner and set the active attribute to false

Events

Name Detail Description
confirm N/A User has clicked the primary button of the banner
cancel N/A User has clicked the secondary button of the banner

Storybook

Last Updated: 4/5/2019, 10:21:49 AM