Skip to main content

Category Autocomplete

The Category Autocomplete component renders a bar that allows users to search (with autocomplete) for all the categories available in the application.

Usage

 import React from 'react';
import {SCContextProvider} from '@selfcommunity/react-core';
import {CategoryAutocomplete} 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}><CategoryAutocomplete /></SCContextProvider>
);
}