The disabled state of the component.
Sets the control into invalid state (visual state only).
The label for the control.
The name attribute of the control.
Whether the control will have outlined appearance.
The placeholder attribute of the control.
Makes the control a readonly field.
Dictates the behavior when retrieving the value of the control:
raw: Returns clean input (e.g. "5551234567")withFormatting: Returns with mask formatting (e.g. "(555) 123-4567")Empty values always return an empty string, regardless of the value mode.
The initial value of the component.
Returns the HTMLFormElement associated with this element.
A string containing the validation message of this element.
Returns a ValidityState object which represents the different validity states the element can be in, with respect to constraint validation.
The value attribute of the control. Type varies based on the input type and can be string, Date or null.
A boolean value which returns true if the element is a submittable element that is a candidate for constraint validation.
Removes focus from the control.
Checks for validity of the control and emits the invalid event if it invalid.
Sets focus on the control.
Returns whether the current masked input is valid according to the mask pattern.
Checks for validity of the control and shows the browser message if it invalid.
Selects all the text inside the input.
Sets a custom validation message for the control.
As long as message is not empty, the control is considered invalid.
Sets the text selection range of the control
A masked input is an input field where a developer can control user input and format the visible value, based on configurable rules
Element
igc-mask-input
Slot
prefix - Renders content before the input
Slot
suffix - Renders content after the input
Slot
helper-text - Renders content below the input
Slot
value-missing - Renders content when the required validation fails.
Slot
bad-input - Renders content when a required mask pattern validation fails.
Slot
custom-error - Renders content when setCustomValidity(message) is set.
Slot
invalid - Renders content when the component is in invalid state (validity.valid = false).
Fires
igcInput - Emitted when the control receives user input
Fires
igcChange - Emitted when an alteration of the control's value is committed by the user
Csspart
container - The main wrapper that holds all main input elements
Csspart
input - The native input element
Csspart
label - The native label element
Csspart
prefix - The prefix wrapper
Csspart
suffix - The suffix wrapper
Csspart
helper-text - The helper text wrapper