mirror of
https://github.com/picocss/pico.git
synced 2025-04-22 09:26:14 -04:00
25 lines
522 B
TypeScript
25 lines
522 B
TypeScript
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>
|
|
`,
|
|
};
|