Factories
Options
required shape
required accepts a boolean shortcut or a per-atom object:
true marks every rendered atom required; false leaves them all optional. Pass an object to require specific atoms only.
fieldLayout shape
fieldLayout is an array of atom keys (or { inlineRow: [...] } wrappers) that defines vertical order. It mirrors the card fieldLayout shape:
fields
Every atom accepts label, placeholder, disabled, autoFocus, hidden, id, and ariaLabel.
Setting
fields.<atom>.hidden: true hides the atom and skips its schema during validation.
fields.country extras
defaultCountry is a top-level option, not nested under fields.country.
fields.fullName (optional slot)
Accepts every option the standalone fullName element accepts, minus the elementType discriminant. Presence of the key opts the slot in.
fields.companyName (optional slot)
Accepts every option the standalone companyName element accepts, minus the elementType discriminant. Presence of the key opts the slot in.
Value
fullName and companyName are undefined when the corresponding slot is not configured.
FieldError.field values
'line1', 'line2', 'city', 'state', 'zip', 'country', and (when configured) 'fullName' / 'firstName' / 'lastName' / 'companyName'.
Methods
element.mount(selector)element.update(partialOptions)element.submit(): void— validates and emitsonSubmit/onError.element.unmount()element.destroy()element.on(event, handler)— subscribe to events.