Appearance
Important information banner - AvNotice
✨ Introduction
The AvNotice is an important information banner that allow users to view or access important and temporary information.
It is displayed on all pages on desktop and mobile devices. It displays important and urgent information (overuse may cause this banner to "disappear").
🏗️ Structure
The notice consists of the following elements:
- A title (prop
title, of typestring):- Optional with a default value
''
- Optional with a default value
- A text (prop
text, of typestring):- Optional with a default value
''
- Optional with a default value
- A pictogram and a color determined by the prop
type, which can be one of the following strings:'info''warning''alert'
- An information icon
🏷️ Props
| Name | Type | Default | Mandatory | Description |
|---|---|---|---|---|
title | string | '' | The banner title. | |
text | string | '' | The banner text. Any text surrounded by ** will be underlined. | |
type | 'info' | 'warning' | 'alert' | ✅ | The banner type. |
🔊 Events
None.
🎨 Slots
None.
🚀 Storybook demos
You can find examples of use and demo of the component on its dedicated Storybook page.
💡 Examples of use
vue
<template>
<AvNotice
text="You have unassigned tracks. Please note, they will be **deleted within 15 days**. Remember to assign them."
type="warning"
/>
</template>