<tap-input>
Text input component. Supports clear button, various input types (password, number, textarea, etc.), and disabled state.
Example
Loading...
<tap-input .placeholder=${"Please enter text..."} .clearable=${true}></tap-input> <tap-input
.type=${"password"}
.placeholder=${"Please enter password..."}
.value=${"123456"}
.clearable=${true}></tap-input> <tap-input
.type=${"textarea"}
.placeholder=${"Multi-line text input..."}
.rows=${3}></tap-input> <tap-input
.placeholder=${"Disabled input"}
.disabled=${true}
.value=${"Disabled"}></tap-input>
API
Shadow DOM; Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
change |
Emitter<string> |
|
clear |
Emitter<string> |
|
name(name) |
Yes | string |
value(value) |
Yes | string |
type(type) |
Yes | 'search' | 'password' | 'email' | 'url' | 'tel' | 'text' | 'textarea' | 'number' |
placeholder(placeholder) |
Yes | string |
spellcheck(spellcheck) |
Yes | boolean |
required(required) |
Yes | boolean |
disabled(disabled) |
Yes | boolean |
readonly(readonly) |
Yes | boolean |
autofocus(autofocus) |
Yes | boolean |
clearable(clearable) |
Yes | boolean |
alwayclearable(alwayclearable) |
Yes | boolean |
rows(rows) |
Yes | number |
step(step) |
Yes | number |
min(min) |
Yes | number |
max(max) |
Yes | number |
dataList |
Yes | DataList |
icon |
Yes | string | Element | DocumentFragment |
Other
| Type | Value |
|---|---|
| Event | change, clear |
| Part | input, clear |
| CSS State | filled, composing |
