Skip to content

Instantly share code, notes, and snippets.

@mwcz
Created February 14, 2020 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwcz/293b7e78af6452f095688b0f41b20783 to your computer and use it in GitHub Desktop.
Save mwcz/293b7e78af6452f095688b0f41b20783 to your computer and use it in GitHub Desktop.
Example of pulling PatternFly Elements into a static HTML page using unpkg.com. Good for toying around with elements without having to set up NPM tooling, build process, etc.
<!-- Pull in pfelement.css -->
<link rel="stylesheet" href="https://unpkg.com/@patternfly/pfelement/dist/pfelement.min.css">
<!-- Add an import statement for each PatternFly Element you want .ES Modules++ -->
<script type="module">
import "https://unpkg.com/@patternfly/pfe-card/dist/pfe-card.min.js";
import "https://unpkg.com/@patternfly/pfe-cta/dist/pfe-cta.min.js";
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment