Input

Inputs

A standard text input field.

Preview

Usage

<Input label="Email" placeholder="hello@example.com" bind:value={email} />

Props

NameTypeDefaultDescription
valuestring''The current value of the input.
labelstring''Label text displayed above the input.
placeholderstring''Placeholder text.
errorstring''Error message to display.
disabledbooleanfalseWhether the input is disabled.

Events

NameDescription
inputFired when the value changes.
changeFired when the input loses focus or value changes.