Skip to content

a web component for showing usage/examples of web components

License

Notifications You must be signed in to change notification settings

beck24/example-code-component

Repository files navigation

Built With Stencil

Example Code Component

A web component for displaying example code. Has slots for display where the active example will be demo'd, as well as html, javascript, and css which will be in a tabbed component. Empty slots don't show tabs, so if only html and javascript is used there is no empty css tab.

Comes with a <pretty-code> component for formatting code snippets

See the demo: https://beck24.github.io/example-code-component/

Installation

Via script

Include the script in the document head

<script src="https://unpkg.com/@beck24/example-code-component/dist/example-code.js"></script>

Use the component in the body

See the demo: https://beck24.github.io/example-code-component/

Via NPM

Install the module

npm install @beck24/example-code-component

About

a web component for showing usage/examples of web components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published