mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-16 06:58:46 +00:00
레이아웃에 필수적인 Snippet은 반드시 전달해야하도록 Props 타입 수정
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
interface Props {
|
||||
checked?: boolean;
|
||||
children?: Snippet;
|
||||
children: Snippet;
|
||||
}
|
||||
|
||||
let { checked = $bindable(false), children }: Props = $props();
|
||||
@@ -14,9 +14,7 @@
|
||||
|
||||
<label class="flex items-center gap-x-1">
|
||||
<input bind:checked type="checkbox" class="hidden" />
|
||||
<div>
|
||||
{@render children?.()}
|
||||
</div>
|
||||
{@render children()}
|
||||
{#if checked}
|
||||
<IconCheckCircle class="text-primary-600" />
|
||||
{:else}
|
||||
|
||||
Reference in New Issue
Block a user