Created
February 14, 2020 17:30
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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