Skip to main content

inno-input

light background
dark background

Properties

PropertyAttributeDescriptionTypeDefault
caretPosEndOnFocuscaret-pos-end-on-focusWhen you click on the inno-input a focus() command is called on the input element. This might cause that the caret position will be at the beginnging of the input's value. Set this to true if you want the caret position to be at the end. Only has an effect if the input type is 'text'. Has no effect if 'selectOnFocus' is also true.booleanfalse
disableFloatingLabelAutoResizedisable-floating-label-auto-resizeThe floating label is an absolutely positioned element meaning if it is too long it will grow out of the boundaries of the InnoInput component. By default the InnoInput component automatically resizes the floating label so it will fit inside. You can turn this behavior off e.g. if you are sure the label will always fit or it causes some issues.booleanfalse
disableddisabledWhether the inno-input component is disabled or not. Probably not needed to be set since the component automatically detects if the inserted input element is disabled or not. The inno-input component will also be in a disabled state when the input element is readonly.booleanfalse
errorerrorError message to show. If you don't want to use this property you can manually add 'inno-error' components inside the 'inno-input' component. You can either use this property or use the manually added errors. Can't use both at the same time.stringundefined
errortypeerrortypeThe input's validation error type, see: https://developer.mozilla.org/en-US/docs/Web/API/ValidityState

Only has an effect if 'error' has a value.
"badInput" | "customError" | "patternMismatch" | "rangeOverflow" | "rangeUnderflow" | "stepMismatch" | "tooLong" | "tooShort" | "typeMismatch" | "valid" | "valueMissing"undefined
isFocusedis-focusedWhether the input is focused or not.booleanundefined
labellabelFloating label for the input.stringundefined
resizeModeresize-modeSet the resize direction. Only has effect if textarea is provided as wrapped element."both" | "horizontal" | "vertical"'both'
resizeableresizeableWhether the textarea is resizeable. Only has effect if textarea is provided as wrapped element.booleanfalse
selectOnFocusselect-on-focusWhen you click on the inno-input a focus() command is called on the input element. This might cause that the caret position will be at the beginnging of the input's value. Set this to true if you want to select all of the text by default.booleanfalse
variantvariantColor variant of the input."dark" | "light"'light'

Events

EventDescriptionType
valueChangedFired when the new value is valid.CustomEvent<number | string>

Dependencies

Depends on

Graph


Built with StencilJS