Skip to content

Input ​

Overview ​

A styled text input built on the native HTML input element, with support for v-model binding.

Theme entry: Input

Props ​

NameTypeRequiredDefaultDescription
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
classstring|array|objectundefinedAdditional CSS classes to apply to the input.
defaultValuestring|numberundefinedThe default value when uncontrolled.
modelValuestring|numberundefinedThe controlled value (used with v-model).

Events ​

NameDescription
update:modelValueEmitted when the value changes.

Full event reference

Source ​

client/lib/controls/input/Input.vue