Some checks failed
Build, Test, and Publish (to Private NPM Registry) UI Components Library / publish (push) Failing after 52m26s
39 lines
No EOL
1.5 KiB
Text
39 lines
No EOL
1.5 KiB
Text
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Drawer Test</title>
|
|
<link rel="stylesheet" type="text/css" href="<%= componentsStyleHref %>">
|
|
<script src="<%= componentsScriptSrc %>"></script>
|
|
</head>
|
|
<body>
|
|
<main style="padding: 20px;">
|
|
<h1>Drawer Test</h1>
|
|
<p>The following is an example of a drawer component. Click to toggle the visibility of the content.</p>
|
|
<%- useComponent('drawer', {
|
|
id: 'example-drawer',
|
|
label: `
|
|
<h2>Example Drawer</h2>
|
|
`,
|
|
content: `
|
|
<div>
|
|
<div class="drawer-content-header">
|
|
<h3>Hello World!</h3>
|
|
</div>
|
|
<div class="drawer-content-contents">
|
|
<p>This is the body of a drawer</p>
|
|
<p>It can have multiple lines.</p>
|
|
<span>
|
|
<code>Even code snippets</code>,
|
|
<em>Emphasized</em> or <strong>Strong</strong> text,
|
|
or even
|
|
<button>Buttons!</button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`
|
|
}) %>
|
|
</main>
|
|
</body>
|
|
</html> |