DmInput

Updated Aug 18, 2026
DataMagik Application Designer

DmInput

DmInput — text and the HTML5 types the App Designer viewer handles as one branch: email, tel, url, password, search.

When not to use it. For a number, use DmNumberInput — it grouping-formats and steps. For a choice from a known set, use DmSelect.

States

default

DmInput — default, light theme DmInput — default, dark theme

error

DmInput — error, light theme DmInput — error, dark theme

disabled

DmInput — disabled, light theme DmInput — disabled, dark theme

readonly

DmInput — readonly, light theme DmInput — readonly, dark theme

Example

<DmInput />

Props

NameTypeRequiredDefault
modelValuestring | null''
type'text' | 'email' | 'tel' | 'url' | 'password' | 'search''text'
labelstringundefined
placeholderstringundefined
helpstringundefined
errorstringundefined
idstringundefined
namestringundefined
requiredbooleanfalse
disabledbooleanfalse
readonlybooleanfalse
autocompletestringundefined
maxlengthnumberundefined
counterbooleanfalse
clearablebooleanfalse
iconDmIconName | (string & {})undefined
prefixstringundefined
suffixstringundefined
labelHiddenbooleanfalse
autofocusbooleanfalse

Events

clear, enter, update:modelValue

Worth knowing

Read-only is not disabled. A read-only field is still focusable and copyable, which matters when an operator needs to read a part number off the screen.

Was this page helpful?