API documentation and live playground for Web Components. Based on custom elements manifest JSON format.
<api-viewer src="./custom-elements.json"></api-viewer>- API docs viewer
- Properties - JS properties publicly exposed by the component.
- Attributes - HTML attributes (except those that match properties).
- Events - DOM events dispatched by the component.
- Slots - Default
<slot>and / or named slots, if any. - CSS Custom Properties - Styling API of the component.
- CSS Shadow Parts - Elements that can be styled using
::part().
- Live playground
npm install api-viewer-elementCheck out the Getting Started guide.
The following web components are available:
yarnyarn devyarn startyarn dist- Big thanks to @runem for creating Web Component Analyzer, which previous versions of this package were based on.
- Thanks to @bahrus for wc-info component which inspired me.
- The visual appearance is largely inspired by Vuetify API docs.
- The tabs component is based on the howto-tabs example.
- Thanks to Modern Web for Web Dev Server and Rollup Plugin HTML.

