1.0.3 • Published 2 years ago

ws-toast v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

🍞 ws-toast

A simple way to create toast components.

Very simple usage

Let us imagine that we have a button that creates a toast when it is clicked.

<button onclick="createToast({ message: 'This is a success message', variant: 'success', position: 'top-right' });">Success</button>.

Toast

Parameters

  • message = (string) => The message that will be rendered inside. Default: "This is message info".
  • duration = (number) => The time that you will see the toast on screen. Default: 5000.
  • variant = (string) => The icon and title that will be rendered. You can choose between info, warning, error, and success. Default: info.
  • position = (string) => The position of the toast on the screen. You can choose between top-left, top-right, bottom-left and bottom-right. Default: bottom-right.

Authors

Support

For support, email manuel@webschuppen.com.

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago