1.1.2 • Published 3 years ago

@wowdesarrollos/w-toastr-prueba v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

w-toastr

The simple toast for your web projects.

Installation

npm install @wowdesarrollos/w-toastr

Usage

The w-toastr it's easy to use, just import the package

import '@wowdesarrollos/w-toastr/src/styles/main.css'
import toast from '@wowdesarrollos/w-toastr'

and run the shortcuts.

Example

## import package
import toast from '@wowdesarrollos/w-toastr'
## toast success color green
toast.success('Hello my friend, welcome to w-toast')
## or
toast.info('Hello world!')

Preset functions

w-toast offers five preset functions for a quick start.

FunctionDescription
successcolor green to success actions
infocolor blue to show information
warningcolor yellow
errorcolore red to error actios
darkcolor dark neutral

Flexible and configurable

w-toast allows you to configure your style, you can modify the colors and the animation time

toast.config(options)
# or
toast.show('title', 'message', options)

Allowed options

OptionDescription
colorsObject with colors: DARK, SUCCESS, INFO, WARNING, ERROR
durationInteger
dismissibleBoolean, default false

License

MIT

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago