{#if label || error}
{#if label} {label} {#if required} * {/if} {/if} {#if hasWrapper}
{#if leftIcon} {/if} {#if rightIcon} {/if} {#if showCounter} {currentCount}{maxLength ? `/${maxLength}` : ''} {/if}
{:else} {/if} {#if error} {error} {/if}
{:else if hasWrapper}
{#if leftIcon} {/if} {#if rightIcon} {/if} {#if showCounter} {currentCount}{maxLength ? `/${maxLength}` : ''} {/if}
{:else} {/if}