Base Field State
Common state contract shared by every VGS Compose field state (card number, CVC, expiry, SSN, cardholder, generic text).
Instances are immutable — every keystroke produces a new state object. The raw text value is never exposed publicly; submit the state via VGSCollect.asyncSubmit(...) and the SDK reads it internally.
Obtain concrete states with the matching rememberVgs…TextFieldState factory (e.g. rememberVgsCardNumberTextFieldState), then pass them to the corresponding Vgs…TextField composable.
Inheritors
Properties
current length of the entered value.
optional tokenization settings; when present, the value is tokenized on submit and the token is sent in its place.
per-validator outcomes for the current value.
custom validators applied to the value, or null to use the field's default validators.