0.1.8 • Published 1 year ago

vt-playground v0.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Val Town Playground

Embed a val.town playground in your website.

Usage

<!doctype html>
<html>
  <head>
    <title>vt-playground</title>
    <script type="module" src="https://raw.esm.sh/vt-playground@latest/dist/vt-playground.js"></script>
  </head>
  <body>
    <vt-playground id="playground" code="console.log('hello world')"></vt-playground>
  </body>
</html>

See @pomdtr/vt_playground_demo on val.town for a live demo.

API

Attributes

  • code: The code to be executed in the playground. The value of this attribute will be updated when the code changes in the playground.
  • val: A val to load in the playground.

Events

  • code-change: Fired when the code changes. The event detail contains the new code.

Development Commands

npm run dev # Start the development server
npm run build # Build the web component
npm run format # apply prettier to the code
0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.1.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago