Skip to main content

Factories

Both share the same options shape.

Options

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

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', 'postalCode', 'country', and (when configured) 'fullName' / 'firstName' / 'lastName' / 'companyName'.

Methods

  • element.mount(selector)
  • element.update(partialOptions)
  • element.submit()
  • element.unmount()
  • element.destroy()
  • element.on(event, handler)

Events

Every element event is supported. See Events overview.
Last modified on July 22, 2026