picocss/stories/scripting/script.stories.ts

27 lines
541 B
TypeScript
Raw Normal View History

2025-04-04 11:51:33 +02:00
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 = {};