feat: add StorybookJS

This commit is contained in:
Michal 2025-04-04 11:51:33 +02:00
parent 1039a4788d
commit cbc1260553
116 changed files with 3560 additions and 2 deletions

View 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 = {};

View 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 = {};

View 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 = {};