@kemtai/react-care-sdk
v1.0.2
Published
Kemtai React Care SDK
Downloads
146
Readme
Official React SDK for Kemtai
Overview
Kemtai React SDK is a React components library built with typescript to make it easier to embed Kemtai's UI components.
Before you start
This SDK is intended to be used in an existing projects that use Kemtai's API.
Installation
yarn add @kemtai/react-sdk
# or
npm i @kemtai/react-sdk
Usage
import React from 'react';
import { KemtaiProvider, PatientProtocolEmbeddable } from '@kemtai/react-sdk';
const App: React.FC = () => {
const kemtaiToken = ""; // Obtain during the auth flow
return (
// Provide the Kemtai context to your App
<KemtaiProvider token={kemtaiToken}>
{/* ... */}
<PatientProtocolEmbeddable
patientId=""
height="100%"
width="100%"
/>
{/* ... */}
</KemtaiProvider>
);
}