@clara.care/react 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # @clara-care/react
2
+
3
+ Clara AI Medical Documentation Widget - React component with TypeScript support.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @clara-care/react
9
+ # or
10
+ yarn add @clara-care/react
11
+ # or
12
+ pnpm add @clara-care/react
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```tsx
18
+ import { ClaraWidget, useClaraStore } from '@clara-care/react';
19
+ import '@clara-care/react/style.css';
20
+
21
+ function App() {
22
+ const { setConfig } = useClaraStore();
23
+
24
+ useEffect(() => {
25
+ setConfig({
26
+ apiKey: 'your-api-key',
27
+ primaryColor: '#6B46C1',
28
+ position: 'bottom-right',
29
+ });
30
+ }, []);
31
+
32
+ return <ClaraWidget />;
33
+ }
34
+ ```
35
+
36
+ ## TypeScript Support
37
+
38
+ Full TypeScript support with exported types:
39
+
40
+ ```tsx
41
+ import type { ClaraConfig, Template, Analysis } from '@clara-care/react';
42
+ ```
43
+
44
+ ## Exports
45
+
46
+ - `ClaraWidget` - Main widget component
47
+ - `useClaraStore` - Zustand store hook
48
+ - `ClaraStoreAPI` - Store API for external access
49
+
50
+ ## Documentation
51
+
52
+ Visit [https://clara.care/docs](https://clara.care/docs) for full documentation.
53
+
54
+ ## License
55
+
56
+ MIT © Clara Care