switch to mono-ui checkbox
This commit is contained in:
1 parent
d02d8556d5
commit
0c2b39a9e8
8 files changed
+16
-32
No files matched your search
@@ -1,16 +0,0 @@
|
||||
<script lang="ts">
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
|
||||
export let defaultValue: boolean = false
|
||||
export let checked: boolean | undefined = defaultValue
|
||||
const dispatcher = createEventDispatcher<{ change: boolean }>()
|
||||
</script>
|
||||
|
||||
<label class="flex flex-row gap-2 cursor-pointer text-sm">
|
||||
<input
|
||||
type="checkbox"
|
||||
bind:checked
|
||||
on:change={() => dispatcher('change', !checked)}
|
||||
/>
|
||||
<slot />
|
||||
</label>
|
||||
Reference in new issue
Block a user