@api-viewer/demo
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-pre.10 • Public • Published

@api-viewer/demo

Live playground for Web Components. Based on custom elements manifest JSON format.

<api-demo src="./custom-elements.json"></api-demo>

Documentation →

Live Demo →

Screenshot of api-viewer demo

Install

npm install @api-viewer/demo

Check out the Getting Started guide.

Features

  • Source - Code snippet matching the rendered component.
  • Knobs - Change properties and slotted content dynamically.
  • Styles - Change values of the custom CSS properties.
  • Event log - Output the events fired by the component.
  • Templates - Provide additional HTML to be shown.

Package Sidebar

Install

npm i @api-viewer/demo

Weekly Downloads

2,230

Version

1.0.0-pre.10

License

MIT

Unpacked Size

144 kB

Total Files

63

Last publish

Collaborators

  • web-padawan