2.0.1 • Published 9 months ago

@kemtai/react-sdk v2.0.1

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
9 months ago

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>
  );

}
2.0.1

9 months ago

2.0.0

10 months ago

1.0.2

11 months ago

1.0.1

2 years ago

1.0.0

2 years ago