@sajn/embed-react 0.1.1 → 0.1.2
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 +30 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# @sajn/embed-react
|
|
2
|
+
|
|
3
|
+
React component for embedding sajn's e-signature functionality directly into your applications.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @sajn/embed-react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { EmbedSignDocument } from '@sajn/embed-react';
|
|
15
|
+
|
|
16
|
+
function App() {
|
|
17
|
+
return (
|
|
18
|
+
<EmbedSignDocument
|
|
19
|
+
documentId="your-document-id"
|
|
20
|
+
token="your-token"
|
|
21
|
+
onSignerCompleted={(data) => console.log('Signed!', data)}
|
|
22
|
+
onSignerRejected={(data) => console.log('Rejected', data)}
|
|
23
|
+
/>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Documentation
|
|
29
|
+
|
|
30
|
+
For full documentation, events, and configuration options, see the [main README](https://github.com/sajn-se/embeds#readme).
|