Address
The address component is a generic component that is useful in any instance where an address field is required and must be stored. It’s designed for smart and dynamic address input, with support for advanced configurations like bounds and prioritization.
Properties
The following properties are available to configure the behavior of the component from the form editor (this is in addition to common properties).
Common
Property Name string
A unique key used to bind the address value to your form model.
Label object
Toggle whether the field label is visible.
Placeholder string
Hint text shown inside the input field before a selection is made.
Tooltip string
Additional contextual help shown on hover.
Edit Mode string
Controls interactivity:
- Editable: Allows user input.
- Read Only: Display only.
- Inherited (default): Follows form’s state.
Hide boolean
Toggle visibility of the component.
Main Settings
Min Characters Before Search number
Minimum characters a user must type before the address API is called.
Debounce (MS) number
Delays the API call to reduce the number of requests while the user is typing.
Google Maps Key string
API key used to authenticate with Google Maps.
OpenCage Key string
API key for accessing OpenCage Data services.
Country Restriction object
Restrict searches to one or more specific countries.
Prefix (Area Restriction) string
A text prefix appended to the search query to bias the results.
Priority Bounds (Advanced) boolean
Enables advanced search priority based on coordinates.
Appearance
Custom Styles function
Inject your own CSS styles via JavaScript (must return a style object).
Validation
Required boolean
Set to true to ensure an address is required before form submission.