> ## Documentation Index
> Fetch the complete documentation index at: https://tonic.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Toasts

Toasts use Rails\` Flash message functionality to send toasts from the backend to the frontend.

### To trigger a toast

```ruby theme={null}
flash.now[:toasts] = [
  { title: 'Post Created', message: 'Your post has been created.' }
]
```

## Info

* Toast styling comes from base-styles.

* The html lives in `/views/shared/_partial_containers.html.erb` and `/views/shared/_toast.html.erb`.
