Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sachin-philip/vue-toast

A bulma based vue toastr, ie bulma notification wrapper
https://github.com/sachin-philip/vue-toast

bulma notification toastr vue

Last synced: 8 days ago
JSON representation

A bulma based vue toastr, ie bulma notification wrapper

Awesome Lists containing this project

README

        

# Vue Bulma Toastr

Package contains a bulma based vue toastr component. All classes of vue notificationa are inheritted over here.

## Note: THIS IS ON TESTING PHASE And NOT STABLE

## Setup

Using npm
```bash
npm install vue-bulma-toastr --save
```
Or using yarn
```bash
yarn add vue-bulma-toastr
```

## Usage
### Import Component
```javascript
import BulmaToastr from 'vue-bulma-toastr'

Vue.use(BulmaToastr)
```

Optional Global configuration options
```javascript
var toastrConfigs = {
position: 'top right',
showDuration: 2000
}
Vue.use(BulmaToastr, toastrConfigs)
```

### Call Notification Instance
```javascript
this.$toast.success({
message:''
})
```

### type

* `success`
* `info`
* `warning`
* `error`

### position

* `top right`
* `bottom right`
* `bottom left`
* `top left`
* `top center`
* `bottom center`
* `top full width`
* `bottom full width`