mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 10:46:14 -04:00
feat: add StorybookJS
This commit is contained in:
parent
1039a4788d
commit
cbc1260553
116 changed files with 3560 additions and 2 deletions
26
stories/text-content/p.stories.ts
Normal file
26
stories/text-content/p.stories.ts
Normal file
|
@ -0,0 +1,26 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "TextContent/P",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("p", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
||||
|
||||
export const MozillaExample = {
|
||||
render: () => `<p>
|
||||
This is the first paragraph of text. This is the first paragraph of text. This
|
||||
is the first paragraph of text. This is the first paragraph of text.
|
||||
</p>
|
||||
<p>
|
||||
This is the second paragraph. This is the second paragraph. This is the second
|
||||
paragraph. This is the second paragraph.
|
||||
</p>`,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue