Appearance
Installation
Via NPM
Install the Deepdesk SDK package together with React. This also comes with TypeScript support!
bash
npm install @deepdesk/deepdesk-sdk react react-dom
DeepdeskSDK also works with Preact! This will reduce you bundle size significantly. See preactjs.com/guide/v10/getting-started on how to use preact with your current setup.
Usage:
js
import '@deepdesk/deepdesk-sdk/styles'; // Injects CSS
import { DeepdeskSDK } from '@deepdesk/deepdesk-sdk';
Via CDN
Load the Deepdesk SDK via a CDN like unpkg.com. The IIFE build also includes React.
A specific version (recommended), for example:
html
<link rel="stylesheet" href="https://unpkg.com/@deepdesk/deepdesk-sdk@14.3.0/styles.css" />
<script src="https://unpkg.com/@deepdesk/deepdesk-sdk@14.3.0/dist/index.iife.js"></script>
Or the latest:
html
<link rel="stylesheet" href="https://unpkg.com/@deepdesk/deepdesk-sdk@latest/styles.css" />
<script src="https://unpkg.com/@deepdesk/deepdesk-sdk@latest/dist/index.iife.js"></script>
Usage:
js
const { DeepdeskSDK, updateTextArea } = window.Deepdesk;