{#each code as char, index (index)}
handleInput(index, event)}
on:keydown={(event) => handleKeydown(index, event)}
on:paste={(event) => handlePaste(index, event)}
on:focus={handleFocus}
>
{/each}
{#if !isFluid}
{#if hasError}
{:else if hasWarn}
{/if}
{/if}
{#if isFluid}
{#if hasError}
{/if}
{#if hasWarn}
{/if}
{/if}
{#if !isFluid && !hasError && !hasWarn && helperText}