Skip to content

A vanilla web component to demo vanilla web components

License

Notifications You must be signed in to change notification settings

vanillawc/wc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<wc-demo> A Component to Demo Components

GitHub Releases NPM Releases Bundlephobia Latest Status Release Status

Discord Published on WebComponents.org

Installation

Installation

npm i @vanillawc/wc-demo

Import from NPM

<script type="module" src="node_modules/@vanillawc/wc-demo/index.js"></script>

Import from CDN

<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-demo@1/index.js"></script>

Demo

Try it on WebComponents.dev

Usage

Attributes

  • title - the demo title
  • link - link to the demo's GitHub repo
  • desc - the demo's description
  • src - path to the demo source file

Load an external Markdown file using the src attribute

<wc-demo title="WC-Demo" link="https:/github.com/vanillawc/wc-demo" desc="Basic Usage" src="assets/demo.html"></wc-demo>

Contributing

See CONTRIBUTING.md