mirror of
https://github.com/picocss/pico.git
synced 2025-04-29 04:19:13 -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/sectioning/aside.stories.ts
Normal file
29
stories/sectioning/aside.stories.ts
Normal file
|
@ -0,0 +1,29 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "Sectioning/Aside",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return `<aside>Aside content</aside>`;
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
||||
|
||||
export const MozillaExample = {
|
||||
render: (args) => `<article>
|
||||
<p>
|
||||
The Disney movie <cite>The Little Mermaid</cite> was first released to
|
||||
theatres in 1989.
|
||||
</p>
|
||||
<aside>
|
||||
<p>The movie earned $87 million during its initial release.</p>
|
||||
</aside>
|
||||
<p>More info about the movie…</p>
|
||||
</article>
|
||||
`,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue