CardFormDefaults field component handles its own formatting, validation, keyboard configuration, and error display. All fields accept controller: PrimerCardFormController and modifier: Modifier = Modifier.
Card detail fields
CardNumberField
Supported networks: Visa, Mastercard, Amex, Diners Club, Discover, JCB, UnionPay, Maestro, Elo, Mir, Hiper, Hipercard, Cartes Bancaires, Dankort, Eftpos, Other.
ExpiryField
CvvField
CardholderField
CardNetworkField
Billing address fields
All billing fields are rendered only when required by session configuration.Validation behavior
- While typing — no error messages shown.
isFormValidupdates in real-time. - On blur — field is validated and any error is added to
state.fieldErrors. - Error display — inline error text below the field using theme error color.
- Error clearing — errors clear when corrected and re-validated on next blur.