Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr authored May 1, 2024
1 parent 3c1497c commit 06e8b7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

A `<live-code>` element that gives you a code editor with live results as you type.

Live examples: https://docs.lume.io/examples/hello-world/
Examples:

- CodePen: https://codepen.io/trusktr/pen/PogvVBj
- Live demos on Lume's docs site are made with `<live-code>`: https://docs.lume.io/examples/hello-world/

#### `npm install @lume/live-code`

Expand All @@ -20,7 +23,7 @@ Specify content with the `content` attribute:
<live-code content="console.log('hello')" mode="script>iframe" />

<script type="importmap">
... setup the import map, f.e. see examples/index.html, or use an tool to generate an import map such as JSPM Importmap Generator. ...
... setup the import map, f.e. see examples/index.html, or use an tool to generate an import map ...
</script>

<script type="module">
Expand Down

0 comments on commit 06e8b7a

Please sign in to comment.