Skip to main content

Location Autocomplete

The Location Autocomplete component renders a bar that allows users to search (with autocomplete) for cities names.

Usage

 import React from 'react';
import {SCContextProvider} from '@selfcommunity/react-core';
import {LocationAutocomplete} from '@selfcommunity/react-ui';

function App() {
const conf = {
portal: '<community-path>',
session: {
type: 'OAuth',
token: '<community-token>',
refreshToken: '<community-refresh-token>',
refreshTokenEndpoint: '<community-refresh-endpoint>',
},
};
return (
<SCContextProvider conf={conf}><LocationAutocomplete /></SCContextProvider>
);
}