Skip to content

lepture/github-gist

Repository files navigation

Gist Web Component

<github-gist> embed GitHub gists within a Shadow DOM element.

Usage

Include gist web component <script>:

<script src="https://cdn.jsdelivr.net/npm/github-gist"></script>

Render gist with a path attribute:

<github-gist path="lepture/033239da19f4e3246d1f34bcf20844dd" />

Attributes

  1. path: required, the URL path of the Gist
  2. theme: optional, light or dark

License

MIT

About

Web component for GitHub Gist

Resources

License

Stars

Watchers

Forks

Packages

No packages published