<dy-input>

A versatile input component that supports various input types and features like data lists, clearable inputs, and number inputs. It provides a consistent and accessible way to collect user input with built-in validation and formatting options.

Example

API

DuoyunInputElement

Extends TapInputElement

TapInputElement

Shadow DOM; Extends GemElement

TapInputElement 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

TapInputElement Other

Type Value
Event change, clear
Part input, clear
CSS State filled, composing

DuoyunInputGroupElement

Extends TapInputGroupElement

TapInputGroupElement

Extends GemElement