Input
InputsA standard text input field.
Preview
Usage
<Input label="Email" placeholder="hello@example.com" bind:value={email} />Props
| Name | Type | Default | Description |
|---|---|---|---|
| value | string | '' | The current value of the input. |
| label | string | '' | Label text displayed above the input. |
| placeholder | string | '' | Placeholder text. |
| error | string | '' | Error message to display. |
| disabled | boolean | false | Whether the input is disabled. |
Events
| Name | Description |
|---|---|
| input | Fired when the value changes. |
| change | Fired when the input loses focus or value changes. |