anki/ts/components/Detachable.svelte

12 lines
234 B
Svelte

<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
export let detach = false;
</script>
{#if !detach}
<slot />
{/if}