Skip to content

Input ​

Last updated

Demo ​

input/demo.vue
Please enter a name.

YlfInput keeps native input behavior and shares the Select control geometry. Use a visible label; describe invalid values with text connected by aria-describedby.

Props ​

PropDescriptionTypeDefault
modelValueText value (v-model)string''
sizeControl densitysm | mdmd
invalidExpose an invalid valuebooleanfalse

Native attributes and events such as id, name, type, required, disabled, readonly, placeholder, autocomplete, input and blur are forwarded to the input. Native composition events retain IME input behavior. This component is for text values; use a dedicated numeric control for numeric parsing.

The default target is at least 44px tall. Compact controls are 34px and grow to 44px for coarse pointers. The error state does not replace a visible error message.