Input Address
Represents an address compound field. This component requires API version 42.0 and later.
Descriptor
lightning:inputAddressTargets
Lightning Experience, Experience Builder Sites, Salesforce Mobile App, Lightning Out / Visualforce, Standalone Lightning App
Example Options
Basic Address InputAddress fields can be prepopulated and marked as required. Address With State and Country PicklistsThis component is used to display an address with province and country picklist.
Basic Address Input
Code
<aura:component> <div style="max-width: 400px;"> <lightning:inputAddress addressLabel="Address" streetLabel="Street" cityLabel="City" countryLabel="Country" provinceLabel="Province" postalCodeLabel="PostalCode" street="121 Spear St." city="San Francisco" country="US" province="CA" postalCode="94105" required="true" fieldLevelHelp="Help Text for inputAddress field" /> </div> </aura:component>