mirror of
https://github.com/picocss/pico.git
synced 2025-04-21 17:16:14 -04:00
feat: add StorybookJS
This commit is contained in:
parent
1039a4788d
commit
cbc1260553
116 changed files with 3560 additions and 2 deletions
17
stories/scripting/canvas.stories.ts
Normal file
17
stories/scripting/canvas.stories.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "Scripting/Canvas",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
height: 100,
|
||||
width: 100,
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("canvas", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
15
stories/scripting/noscript.stories.ts
Normal file
15
stories/scripting/noscript.stories.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "Scripting/Noscript",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("noscript", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
26
stories/scripting/script.stories.ts
Normal file
26
stories/scripting/script.stories.ts
Normal file
|
@ -0,0 +1,26 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "Scripting/Script",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
async: false,
|
||||
attributionsrc: "",
|
||||
blocking: false,
|
||||
crossorigin: "",
|
||||
defer: false,
|
||||
fetchpriority: "auto",
|
||||
integrity: "",
|
||||
nomodule: false,
|
||||
referrerpolicy: "no-referrer",
|
||||
src: "",
|
||||
type: "text/javascript",
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("script", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
Loading…
Add table
Add a link
Reference in a new issue