{#if !field} Add the Field setting to start using your component {:else if !fieldState} Form components need to be wrapped in a Form {:else}
{#if label} {/if}
{#if !$fieldState.valid} {/if}
{#if $fieldState.error}
{/if}
{/if}