picocss/stories/text-content/menu.stories.ts
2025-04-04 11:51:33 +02:00

33 lines
806 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { createHTMLElement } from "../HTMLElement";
export default {
title: "TextContent/Menu",
tags: ["autodocs"],
args: {
content: "Content",
},
// Render the <html> element
render: (args) => {
return createHTMLElement("menu", args);
},
};
export const Default = {};
export const MozillaExample = {
render: () => `<div class="news">
<a href="#">NASAs Webb Delivers Deepest Infrared Image of Universe Yet</a>
<menu>
<li><button id="save">Save for later</button></li>
<li><button id="share">Share this news</button></li>
</menu>
</div>`,
};
export const MozillaExample2 = {
render: () => `<menu>
<li><button onclick="copy()">Copy</button></li>
<li><button onclick="cut()">Cut</button></li>
<li><button onclick="paste()">Paste</button></li>
</menu>`,
};