Vgs Ssn Text Field State
Immutable state for a VGS U.S. Social Security Number field.
Obtain an instance with rememberVgsSsnTextFieldState inside a composable. The state is replaced (not mutated) on every keystroke; pass the latest instance to your VgsSsn…TextField and update it from onStateChange:
var state by rememberVgsSsnTextFieldState(
collect = vgsCollect,
fieldName = "data.ssn",
)
VgsSsnOutlinedTextField(
state = state,
onStateChange = { state = it },
)Content copied to clipboard
Useful properties:
mask — input mask the field renders ("###-##-####").
isValid / validationResult — current validation outcome.
fieldName — JSON key used in the submit payload.
Properties
Link copied to clipboard
current length of the entered value.
Link copied to clipboard
optional tokenization settings; when present, the value is tokenized on submit and the token is sent in its place.
Link copied to clipboard
per-validator outcomes for the current value.
Link copied to clipboard
custom validators applied to the value, or null to use the field's default validators.