Gibbu / svoast

A simple toast component for Svelte.

Home Page:https://svoast.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple toast component for Svelte.


Usage

<!-- routes/+layout.svelte -->
<script>
	import { Toasts } from 'svoast';
</script>

<Toasts />
<!-- routes/settings/+page.svelte -->
<script>
	import { toast } from 'svoast';

	const save = () => {
		toast.success('Successfully update your profile.');
	};
</script>

<button on:click={save}>Save Changes</button>

Docs

View more information at: https://svoast.vercel.app


Changelog

You can view all the changes at https://svoast.vercel.app/changelog


Licence

See the LICENSE file for license rights and limitations (MIT).


Credits

SVoast logo made by Bruce Wayyn.

About

A simple toast component for Svelte.

https://svoast.vercel.app

License:MIT License


Languages

Language:Svelte 54.5%Language:TypeScript 33.4%Language:JavaScript 7.7%Language:HTML 2.7%Language:CSS 1.8%