diff --git a/src/lib/StyledRawInput.svelte b/src/lib/StyledRawInput.svelte index f7c7884..7a87de5 100644 --- a/src/lib/StyledRawInput.svelte +++ b/src/lib/StyledRawInput.svelte @@ -5,9 +5,10 @@ type InputValidatorEvent, type ValidatorOptions } from '@svelte-toolkit/validate'; + import { generateIdentifier } from './util.js'; type $Props = Omit & { - name: string; + name?: string; value?: string; validate?: ValidatorOptions; ref?: HTMLInputElement | null; @@ -15,6 +16,7 @@ }; let { + id = generateIdentifier('styled-raw-input'), name, value = $bindable(''), placeholder, @@ -35,7 +37,7 @@