User Location

The User Location component captures and displays the current location of the user.

What the Avonni User Location does

The Avonni User Location component lets you quickly capture and display the user's current location. This functionality opens up a world of possibilities for location-aware features and personalized experiences.

Changing the properties

The main property around the User Location component is the button configuration. A button can be configured to trigger the user location request.

Adding Interactions

Interactions define what happens when users interact with the User Location component. A list of interactions is available here.

Here are the available interactions for the List component:

  • On Successful Location: The event is fired when a user clicks the button to share his location.

Styling

From the Styles panel, you can customize styling attributes for the Progress Circle:

  • Button: customize the button styling settings.

You can find the instructions for styling here.

Specifications

Attributes

NameTypeDescription

Get Current Position on load

Boolean

If true, the component will automatically get the current location when the flow screen is loaded.

Button Label

String

The Label text is diplayed on the button.

Variant

String

Change the visual appearance of the button.

Icon Name

String

Changes the appearance of the progress indicator for the base type only.

Icon Position

String

Set the position of the icon

Type

String

To specify the type of button.

Last updated