Reference
Form-associated address field
import { … } from "@johnmorrisdotca/address-plus/element";
133.0 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
ADDRESS_FIELD_COUNTRIES | constant | Seven built-in field countries; auto detects among them. |
ADDRESS_FIELD_PARSE_KEYS | constant | Native parser options checked by builder coverage. |
ADDRESS_FIELD_VALIDATION_KEYS | constant | Native validator options checked by builder coverage. |
AddressField | class | A form-associated address input using the seven native country parsers. |
AddressFieldOptions | type | Full native settings and a private callback; raw addresses never enter public events. |
defineField | function | Register the form field under its default or a custom tag, idempotently; safe on a server. |