Text Input
- Source: https://github.com/oslabs-beta/Svve11/blob/main/package/TextInput.svelte
- WAI-ARIA: https://w3c.github.io/aria-practices/#combobox
A text input is a widget that enables users to input a string of text, typically in response to questions or to supply user information. Furthermore, text inputs are often paired with buttons for submission of the text.
Component API
Prop | Type | Required | Default Value |
---|---|---|---|
label | string | true | N/A |
placeholder | string | true | N/A |
id | string | true | N/A |
type | string | true | N/A |
inputStyle | string | false | N/A |
labelStyle | string | false | N/A |
max | string | false | N/A |
min | string | false | N/A |
maxLength | string | false | N/A |
size | string | false | N/A |
step | string | false | N/A |
labelStyle | string | false | N/A |
autocomplete | boolean | false | false |
disabled | boolean | false | false |
multiple | boolean | false | false |
readonly | boolean | false | false |
required | boolean | false | false |