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
30
stories/sectioning/hgroup.stories.ts
Normal file
30
stories/sectioning/hgroup.stories.ts
Normal file
|
@ -0,0 +1,30 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "Sectioning/HGroup",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("hgroup", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
||||
|
||||
export const MozillaExample = {
|
||||
render: (args) => `<hgroup id="document-title">
|
||||
<h1>HTML: Living Standard</h1>
|
||||
<p>Last Updated 12 July 2022</p>
|
||||
</hgroup>
|
||||
<p>Some intro to the document.</p>
|
||||
<h2>Table of contents</h2>
|
||||
<ol id="toc">
|
||||
…
|
||||
</ol>
|
||||
<h2>First section</h2>
|
||||
<p>Some intro to the first section.</p>
|
||||
`,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue