<tap-input>

Text input component. Supports clear button, various input types (password, number, textarea, etc.), and disabled state.

Example

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