mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
Web-components: Restore missing script stories
This commit is contained in:
parent
fd83aa7a0a
commit
fa4337bda3
@ -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>';
|
Loading…
x
Reference in New Issue
Block a user