mirror of
https://github.com/slidevjs/rough-notation.git
synced 2026-01-28 07:50:28 +01:00
Update README.md
This commit is contained in:
@@ -37,6 +37,8 @@ Once you have the annotation object, you can call `show()` on it to show the ann
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import { annotate } from 'rough-notation';
|
import { annotate } from 'rough-notation';
|
||||||
|
// Or using unpkg
|
||||||
|
// import { annotate } from 'https://unpkg.com/rough-notation?module';
|
||||||
|
|
||||||
const e = document.querySelector('#myElement');
|
const e = document.querySelector('#myElement');
|
||||||
const annotation = annotate(e, { type: 'underline' });
|
const annotation = annotate(e, { type: 'underline' });
|
||||||
|
|||||||
Reference in New Issue
Block a user