Flash messages are Callouts that appear at the top (or bottom, with a modifier) of the page, floating over the content. They disappears automatically after 4 seconds unless they are made to be dismissable and the user chooses to dismiss it earlier.

To initialize the Javascript, see the instructions in the **Setup** section at the top of the navigation. By default, the JS will react to the class `Vlt-flash-trigger` by looking for it's `data-flash` property and, on click, it will show the flash message with a corresponding `id`

But you can also trigger the flash from the Javascript this way:

```javascript
//flashId: the id of your Vlt-flash element
//time(optional): number of milliseconds you want the flash to be visible, defaults to 5000
Volta.flash.show('flashId', 'time');
```




