Input

This component provides a validated input field with label and error handling.

Examples

Basic usage

With mask

Properties

Name Type Required Description
@validationField string Yes The field name in the changeset for validation.
@changeset ImmerChangeset Yes The changeset object for form validation.
@label string No The label for the input field.
@placeholder string No The placeholder text for the input field.
@type string No The type of the input field. Defaults to 'text'.
@mandatory boolean No Whether the input field is mandatory.
@mask string No The mask to apply to the input field.
@maskOptions object No The options to apply to the mask.
@unmaskValue boolean No Whether to unmask the value before setting it in the changeset.
@disabled boolean No Whether the input field is disabled.
@onChange function No The action to be called when the value changes.
@changeEvent string No The event to trigger the onChange action.