1.7.0 • Published 3 years ago

just-toasty v1.7.0

Weekly downloads
433
License
MIT
Repository
github
Last release
3 years ago

Install

  • Using cdn:
<script src="https://unpkg.com/just-toasty/dist/just-toasty.umd.js"></script>
  • Using package manager:
$ npm install just-toasty
# OR
$ yarn add just-toasty

Usage

    toasty('Hi') // If no duration is provided, the time will be calculated based on the number of words.
    toasty('Hi', 5000)

    setTimeout(function() {
        toasty('<h1>Whoop</h1>', {styles: {
        backgroundColor: '#555'
    }})
    }, 1000)

    setTimeout(function() {
        toasty('Hi', {duration: 2000})
    }, 3000)

See the example for more information.

Contributing

Contributions are welcome!

  1. Fork it.
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Or open up a issue.

License

Licensed under the MIT License.

1.7.0

3 years ago

1.5.0

3 years ago

1.4.0

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago