> For the complete documentation index, see [llms.txt](https://neptune-css.gitbook.io/neptune-css-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://neptune-css.gitbook.io/neptune-css-docs/neptune-js/toasts.md).

# Toasts

```javascript
import { Toast } from "path/to/package/neptune.min.js"
```

```javascript
const myToast = new Toast({
    // Configuration
});
```

### Configuration

| Configuration | Options                                               |
| ------------- | ----------------------------------------------------- |
| `parent`      | id or class of the parent element                     |
| `icon`        | add icon tag                                          |
| `text`        | add message                                           |
| `style`       | primary, accent, information, success, warning, error |
| `position`    | left-top, left-bottom, right-top, right-bottom        |
