anki/ts/components/SelectOption.svelte

13 lines
300 B
Svelte
Raw Normal View History

2021-04-15 15:59:52 +02:00
<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="ts">
export let value: string | undefined = undefined;
2021-03-31 15:40:11 +02:00
export let selected = false;
</script>
<option {value} {selected}>
<slot />
</option>