Skip to content

Commit c12879f

Browse files
committed
Add script tag
1 parent cf6a362 commit c12879f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,23 @@ $ npm install @github/details-menu-element
1010

1111
## Usage
1212

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

21+
With a script tag:
22+
23+
```html
24+
<script type="module" src="./node_modules/@github/details-menu-element/dist/index.js">
25+
```
26+
27+
### Markup
28+
29+
1730
```html
1831
<details>
1932
<summary>Robots</summary>

0 commit comments

Comments
 (0)