Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

api-viewer-element

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-viewer-element

API documentation and live playground for Web Components

  • 1.0.0-pre.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.4K
increased by22.3%
Maintainers
1
Weekly downloads
 
Created
Source

<api-viewer>

API documentation and live playground for Web Components. Based on custom elements manifest JSON format.

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

Documentation →

Live Demo →

Screenshot of api-viewer docs

Screenshot of api-viewer demo

Install

npm install api-viewer-element

Check out the Getting Started guide.

Features

  • 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
    • 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.

Keywords

FAQs

Package last updated on 16 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc