This commit is contained in:
2023-10-17 18:56:37 +03:00
parent d9736b29a4
commit 4b9e9cb4f6
13 changed files with 4 additions and 432 deletions
-25
View File
@@ -1,25 +0,0 @@
<script>
import Icon from "./Icon.svelte";
export let label = "";
export let show = false;
</script>
<button
class="btn btn-link p-0 text-decoration-none d-flex align-items-center mb-2 "
on:click|preventDefault={(e) => (show = !show)}
>
<span class="me-1">{label}</span>
{#if !show}
<Icon icon="circle-chevron-down" />
{/if}
{#if show}
<Icon icon="circle-chevron-up" />
{/if}
</button>
{#if show}
<div class="mb-3" style="padding: 22px; background: rgb(249, 249, 249); border-radius: 32px;">
<slot />
</div>
{/if}