HTML Mocks Web Components
A collection of web components for mocking
Install via npm
npm install html-mocks
Include the dist/prism-components.html
file in your project.
<link rel="import" href="html-mocks.html">
<mockup-window></mockup-window>
<mockup-browser></mockup-browser>
mockup-browser {
width: 20px;
box-shadow: 0px 0px 3px 3px rgba(70, 70, 70, 0.2);
}
Use Chrome 36 or higher to use web-presentation without a polyfill.
Don't use this components in a public website since it works only on Chrome 36 or higher. On a browser without web components support, the user still sees the code but without highlighting.