Vivid API

Banner

Banner displays a prominent message, usually on system level, and provides actions for users to address or dismiss.

Usage

import { registerBanner } from '@vonage/vivid-api';
registerBanner('your-prefix');

Slots

Action Items

You can add action items using slotted content in a named slot action-items:

Icon

Set the icon slot to show an icon before the banner’s text. If set, the icon attribute is ignored.

API Reference

Properties

PropertyTypeDefaultDescription
connotation'success' | 'alert' | 'warning' | 'information' | 'announcement'
dismissButtonAriaLabelstring
removableboolean
textstring
PropertyTypeDefaultDescription
connotation'success' | 'alert' | 'warning' | 'information' | 'announcement'
dismiss-aria-labelstring
removableboolean
textstring

Slots

NameDescription
action-itemsAdd action items to banner using this slot.
iconThe preferred way to add an icon to the component.
NameDescription
action-itemsAdd action items to banner using this slot.
iconThe preferred way to add an icon to the component.

Methods

NameParamsReturnsDescription
removevoid