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
25
stories/text-content/figcaption.stories.ts
Normal file
25
stories/text-content/figcaption.stories.ts
Normal file
|
@ -0,0 +1,25 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "TextContent/Figcaption",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("figcaption", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
||||
|
||||
export const MozillaExample = {
|
||||
render: () => `<figure>
|
||||
<img
|
||||
src="/shared-assets/images/examples/elephant.jpg"
|
||||
alt="Elephant at sunset" />
|
||||
<figcaption>An elephant at sunset</figcaption>
|
||||
</figure>
|
||||
`,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue