@api-viewer/demo

v1.0.0-pre.8
Live demo playground for Web Components
API documentation web-components

@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.
npm i @api-viewer/[email protected]

Metadata

  • MIT
  • Whatever
  • open-wc
  • released 7/21/2023

Downloads

Maintainers