1.0.10 • Published 5 months ago

toas v1.0.10

Weekly downloads
-
License
other
Repository
github
Last release
5 months ago

!NOTE
This is in pre-beta

Toas Header Image

Thanks for your support Vite Thanks for your support Vite Source: https://x.com/MiguelGargallo/status/1736023947810885761?s=20

Usage

Look, you add the export function you can look at the directory for a Real case

<!-- Component.svelte -->

<script>
	import Toas from '$lib/Toas.svelte';

	function handleSuccess() {
		window['showToas']('Operation Successful', 'success');
	}
	
	function handleError() {
		window['showToas']('Operation Error', 'error');
	}

	function handleLoading() {
		window['showToas']('Operation Loading', 'loading');
	}
	
	// This is an example
	const yourFunction = ... {
		... Your Code ... 
		handleLoading(); // Just invoke the function
		... Your Code ... 
			{
				... Your Code ... 
			handleSuccess(); // Just invoke the function
				... Your Code ... 
			} catch (err) {
				... Your Code ...
			handleError(); // Just invoke the function
				... Your Code ... 
		}
	};

	yourFunction();
</script>

<Toas />

your html goes here here

Initial config

Toas is a web component that will allow you to add notifications without the need of an external library.

In this version

We added colors to the notifications, and we are currently working on icons.

How to use it

Just copy and paste the code from here and use it like this file here.

About the License

This project is under the Pylar AI Creative ML Free License.

1.0.2

5 months ago

1.0.1

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.10

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

1.0.1-b

5 months ago

1.0.1-a

5 months ago

0.0.1

5 months ago

0.0.2

5 months ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago