mirror of
https://github.com/picocss/pico.git
synced 2025-04-26 19:26:14 -04:00
feat: add StorybookJS
This commit is contained in:
parent
1039a4788d
commit
cbc1260553
116 changed files with 3560 additions and 2 deletions
29
stories/text-content/dt.stories.ts
Normal file
29
stories/text-content/dt.stories.ts
Normal file
|
@ -0,0 +1,29 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "TextContent/DT",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("dt", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
||||
|
||||
export const MozillaExample = {
|
||||
render: () => `<p>Please use the following paint colors for the new house:</p>
|
||||
|
||||
<dl>
|
||||
<dt>Denim (semigloss finish)</dt>
|
||||
<dd>Ceiling</dd>
|
||||
|
||||
<dt>Denim (eggshell finish)</dt>
|
||||
<dt>Evening Sky (eggshell finish)</dt>
|
||||
<dd>Layered on the walls</dd>
|
||||
</dl>
|
||||
`,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue