mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/CopyIcon: added regular copy icon
This commit is contained in:
parent
a589bf7e54
commit
b8fc3aeb4c
1 changed files with 7 additions and 1 deletions
|
@ -1,13 +1,19 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import IconLink from "@tabler/icons-svelte/IconLink.svelte";
|
import IconLink from "@tabler/icons-svelte/IconLink.svelte";
|
||||||
|
import IconCopy from "@tabler/icons-svelte/IconCopy.svelte";
|
||||||
import IconCheck from "@tabler/icons-svelte/IconCheck.svelte";
|
import IconCheck from "@tabler/icons-svelte/IconCheck.svelte";
|
||||||
|
|
||||||
export let check = false;
|
export let check = false;
|
||||||
|
export let regularIcon = false;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="copy-animation" class:check>
|
<div id="copy-animation" class:check>
|
||||||
<div class="icon-copy">
|
<div class="icon-copy">
|
||||||
|
{#if regularIcon}
|
||||||
|
<IconCopy />
|
||||||
|
{:else}
|
||||||
<IconLink />
|
<IconLink />
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="icon-check">
|
<div class="icon-check">
|
||||||
<IconCheck />
|
<IconCheck />
|
||||||
|
|
Loading…
Reference in a new issue