diff --git a/src/TextInput/TextInput.svelte b/src/TextInput/TextInput.svelte index f5365a88..7ac95af2 100644 --- a/src/TextInput/TextInput.svelte +++ b/src/TextInput/TextInput.svelte @@ -168,13 +168,15 @@ {/if} {/if} - {#if !isFluid && helperText} + {#if !isFluid && (helperText || $$slots.helperText)}
- {helperText} + + {helperText} +
{/if} @@ -285,14 +287,16 @@
{warnText}
{/if} - {#if !invalid && !warn && !isFluid && !inline && helperText} + {#if !invalid && !warn && !isFluid && !inline && (helperText || $$slots.helperText)}
- {helperText} + + {helperText} +
{/if} {#if !isFluid && invalid}