diff --git a/src/lib/components/form/Input.svelte b/src/lib/components/form/Input.svelte index 00a1368..9c0fbba 100644 --- a/src/lib/components/form/Input.svelte +++ b/src/lib/components/form/Input.svelte @@ -13,6 +13,8 @@ /** The type of the input element, e.g. "text". */ type?: string; + + tail?: Snippet; } let { @@ -20,6 +22,7 @@ labelwidth = "auto", value = $bindable(), type = "text", + tail = undefined, ...restProps }: InputProps = $props(); @@ -32,4 +35,7 @@ {@render children()} + {#if tail} + {@render tail()} + {/if}