-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (28 loc) · 963 Bytes
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Toggle / Accordion Component</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="dist/bundle.js"></script>
<style>
body {
max-width: 600px;
margin: 1rem auto;
}
</style>
</head>
<body>
<jhwc-accordian default title="A nice title, click me to open">
<div class="toggle-box__content" slot="content">
Here is some toggle-able content!
</div>
</jhwc-accordian>
<jhwc-accordian bbc title="Another nice title, click me to open">
<div class="toggle-box__content" slot="content">
Here is some toggle-able <a href="#">content!</a>
</div>
</jhwc-accordian>
</body>
</html>