Skip to content

Commit d2aaa6b

Browse files
committed
Add script tag instruction
1 parent 08f8b3a commit d2aaa6b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,22 @@ $ npm install --save @github/task-lists-element
1010

1111
## Usage
1212

13+
### Script
14+
15+
Import as ES modules:
16+
1317
```js
1418
import '@github/task-lists-element'
1519
```
1620

21+
With a script tag:
22+
23+
```html
24+
<script type="module" src="./node_modules/@github/task-lists-element/dist/index.js">
25+
```
26+
27+
### Markup
28+
1729
```html
1830
<task-lists sortable>
1931
<ul class="contains-task-list">

0 commit comments

Comments
 (0)