generated from prokawsar/dashboard-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script lang="ts"> | ||
import Icon from '@iconify/svelte' | ||
export let show = false | ||
</script> | ||
|
||
<div class="absolute bg-black bg-opacity-20 flex h-full w-full items-center justify-center z-10"> | ||
<div class="bg-white p-2 rounded relative flex flex-col w-3/4"> | ||
<button | ||
class="absolute top-0 right-0 p-[3px] rounded-full w-fit" | ||
on:click|stopPropagation|preventDefault={() => (show = false)} | ||
> | ||
<Icon icon="majesticons:multiply" width="20px" /> | ||
</button> | ||
<slot /> | ||
</div> | ||
</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