Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit 0cea228

Browse files
committed
Add script tag usage
1 parent 3f4a137 commit 0cea228

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/details-dialog-element
1010

1111
## Usage
1212

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

21+
Include with a script tag:
22+
23+
```html
24+
<script type="module" src="./node_modules/@github/details-dialog-element/dist/index.js">
25+
```
26+
27+
### Markup
28+
1729
```html
1830
<details>
1931
<summary>Open dialog</summary>

0 commit comments

Comments
 (0)