mirror of
https://github.com/picocss/pico.git
synced 2025-04-23 01:46:14 -04:00
feat: add StorybookJS
This commit is contained in:
parent
1039a4788d
commit
cbc1260553
116 changed files with 3560 additions and 2 deletions
21
stories/embedded-content/object.stories.ts
Normal file
21
stories/embedded-content/object.stories.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "EmbeddedContent/Object",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
data: "https://example.com",
|
||||
type: "text/html",
|
||||
form: "form",
|
||||
width: 300,
|
||||
height: 200,
|
||||
name: "objectName",
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("object", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
Loading…
Add table
Add a link
Reference in a new issue