Connectivity Plugin
Pre-built Table to easily integrate Connectivity Services into your React App.
Installation
Frontegg-React-Connectivity is available as an npm package.
// using npm
npm install @frontegg/react-connectivity
// using yarn
yarn add @frontegg/react-connectivity
// NOTE: to get the latest stable use @latest.
Usage
All you need is to pass AuditsPlugin to the FronteggProvider
:
/* imports */
import { FronteggProvider } from '@frontegg/react-core';
import { ConnectivityPlugin } from '@frontegg/react-connectivity';
const plugins = [ConnectivityPlugin()];
ReactDOM.render(
<BrowserRouter>
<FronteggProvider
context={/* context options */}
plugins={plugins}>
<App />
</FronteggProvider>
</BrowserRouter>, document.querySelector('#app'));
Then add ConnectivityPage
component to your route:
import { ConnectivityPage } from '@frontegg/react-connectivity';
<Route exact={false} path={'/connectivity'} component={ConnectivityPage}/>
// or if you want to add special parameters for the ConnectivityPage component
<Router exact={false} path={'/somewhere/connectivity''}>
<ConnectivityPage rootPath='/somewhere/connectivity' />
</Router>
Parameters
- rootPath - a custom root path for the component by default it's
/connectivity
- className - a className for the whole container
- headClassName - a className for the header component
- contentClassName - a className for the container of the table
Contributing
The main purpose of this repository is to continue developing Frontegg React to making it faster and easier to use. Read our contributing guide to learn about our development process.
Notice that contributions go far beyond pull requests and commits.
License
This project is licensed under the terms of the MIT license.