mirror of
https://github.com/picocss/pico.git
synced 2025-04-24 18: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
38
stories/sectioning/main.stories.ts
Normal file
38
stories/sectioning/main.stories.ts
Normal file
|
@ -0,0 +1,38 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "Sectioning/Main",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("main", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
||||
|
||||
export const MozillaExample = {
|
||||
render: (args) => `<main>
|
||||
<h1>Apples</h1>
|
||||
<p>The apple is the pomaceous fruit of the apple tree.</p>
|
||||
|
||||
<article>
|
||||
<h2>Red Delicious</h2>
|
||||
<p>
|
||||
These bright red apples are the most common found in many supermarkets.
|
||||
</p>
|
||||
<p>…</p>
|
||||
<p>…</p>
|
||||
</article>
|
||||
|
||||
<article>
|
||||
<h2>Granny Smith</h2>
|
||||
<p>These juicy, green apples make a great filling for apple pies.</p>
|
||||
<p>…</p>
|
||||
<p>…</p>
|
||||
</article>
|
||||
</main>`,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue