-
Notifications
You must be signed in to change notification settings - Fork 5
/
demo.html
31 lines (31 loc) · 1.13 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>webComponent demo</title>
<script src="./dist/shadow-sample.umd.js"></script>
</head>
<body>
<h1>Shadow Dom Examples</h1>
<p>The following examples demonstrate how to isolate web components and their stylings in the shadow dom</p>
<h2>Example 1: Simple Class Names</h2>
<div class="standalone-text">
<p class="standalone-text-red">
This standalone-text was rendered by the parent HTML. The color should <strong>NOT</strong> be red.
</p>
</div>
<standalone-text></standalone-text>
<h2>Example 2: CSS Modules</h2>
<div class="style-module-example">
<p class="blue">
This text was rendered by the parent HTML. The color should <strong>NOT</strong> be blue.
</p>
</div>
<style-module-example></style-module-example>
<h2>Example 3: Vuetify Loader</h2>
<vuetify-example></vuetify-example>
<!-- built files will be auto injected -->
</body>
</html>