Location

Purpose

The Location component is used to display precise locations, for example if a user wants to book a restaurant.

Properties

PropertyTypeDescriptionRequiredDefault value
textStringShow a text that can be clickedNoOpen Location
latNumberDefine the latitudeYes-
longNumberDefine the longitudeYes-

Example

<Location lat='41.3894058' long='2.1568464' />

In botonic serve the text 'Open Location' will be displayed by default. You can redefine it by passing the prop text as shown below:

<Location text={'Check location'} lat='41.3894058' long='2.1568464' />
Was this article useful?