4 <title>PatternFly Elements CDN example</title>
19 <script type="module" src="https://unpkg.com/@patternfly/pfe-card@next?module"></script>
20 <script type="module" src="https://unpkg.com/@patternfly/pfe-button@next?module"></script>
24 <h1>PatternFly Elements CDN example</h1>
28 <h2 slot="header">PF Card</h2>
29 <p>Some info here.</p>
30 <p slot="footer">Footer here...</p>
33 <h2 slot="header">Another Card</h2>
38 <pfe-icon icon="rh-cloud"></pfe-icon>
40 <pfe-button> <!-- icon="rh-cloud" doesn't work -->
41 <button id="do_something">Do something!</button>
45 const button_do = document.getElementById("do_something");
46 button_do.addEventListener("click", () => alert("clicked"));