-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mini-toasts) trying to introduce mini toast notifs at the bottom…
… right for delete operations
- Loading branch information
1 parent
6daa13a
commit 0fbfcda
Showing
5 changed files
with
164 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
<script lang="ts"> | ||
import { Loader } from 'lucide-svelte'; | ||
import { Loader, CircleCheck, CircleX } from 'lucide-svelte'; | ||
export let msg; | ||
export let size = 15; | ||
export let size = 13; | ||
export let success = -1; | ||
</script> | ||
|
||
<div class="flex w-fit items-center justify-center gap-1 p-2"> | ||
<Loader {size} class="animate-spin" /> | ||
<div class="flex w-fit items-center justify-center gap-2 p-2"> | ||
<div class="text-base">{msg}</div> | ||
{#if success < 0} | ||
<Loader {size} class="animate-spin text-carbonblue-500" /> | ||
{:else if success > 0} | ||
<CircleCheck {size} class="animate-pulse text-[#24a147]" /> | ||
{:else} | ||
<CircleX {size} class="animate-pulse" /> | ||
{/if} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters