{#if type === 'select'} {#each options as opt} {opt} {/each} {:else} {#if type === 'checkbox'} {label} {/if} {/if}