Web-components: Restore missing script stories

This commit is contained in:
Michael Shilman 2023-01-03 16:31:37 +08:00
parent fd83aa7a0a
commit fa4337bda3

View File

@ -0,0 +1,17 @@
import { html } from 'lit';
export default {
component: undefined,
};
export const InTemplate = () => html`
<div>JS alert</div>
<script>
alert('hello');
</script>
`;
export const InString = () => '<div>JS alert</div><script>alert("hello")</script>';
export const TypeModule = () =>
'<div>JS alert from module</div><script type="module">alert("hello from module"); export const a = 1;</script>';