picocss/stories/text-content/dd.stories.ts

32 lines
566 B
TypeScript
Raw Normal View History

2025-04-04 11:51:33 +02:00
import { createHTMLElement } from "../HTMLElement";
export default {
title: "TextContent/DD",
tags: ["autodocs"],
args: {
content: "Content",
},
// Render the <html> element
render: (args) => {
return createHTMLElement("dd", args);
},
};
export const Default = {};
export const MozillaExample = {
render: () => `<p>Cryptids of Cornwall:</p>
<dl>
<dt>Beast of Bodmin</dt>
<dd>A large feline inhabiting Bodmin Moor.</dd>
<dt>Morgawr</dt>
<dd>A sea serpent.</dd>
<dt>Owlman</dt>
<dd>A giant owl-like creature.</dd>
</dl>
`,
};