mirror of
https://github.com/picocss/pico.git
synced 2025-04-26 11:16:15 -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/hr.stories.ts
Normal file
29
stories/text-content/hr.stories.ts
Normal file
|
@ -0,0 +1,29 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "TextContent/HR",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return `<hr>`;
|
||||
},
|
||||
};
|
||||
|
||||
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>
|
||||
|
||||
<hr />
|
||||
|
||||
<p>
|
||||
This is the second paragraph of text. This is the second paragraph of text.
|
||||
This is the second paragraph of text. This is the second paragraph of text.
|
||||
</p>`,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue