mirror of
https://github.com/picocss/pico.git
synced 2025-04-24 10:26: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/embedded-content/iframe.stories.ts
Normal file
29
stories/embedded-content/iframe.stories.ts
Normal file
|
@ -0,0 +1,29 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "EmbeddedContent/Iframe",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
src: "https://example.com",
|
||||
type: "text/html",
|
||||
width: 300,
|
||||
height: 200,
|
||||
allow:
|
||||
"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
||||
allowfullscreen: false,
|
||||
allowpaymentrequest: false,
|
||||
browsingtopics: false,
|
||||
credentialless: true,
|
||||
loading: "lazy",
|
||||
name: "iframe-name",
|
||||
refererpolicy: "no-referrer",
|
||||
sandbox: "allow-same-origin allow-scripts",
|
||||
srcdoc: "<p>Your browser does not support iframes.</p>",
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("iframe", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
Loading…
Add table
Add a link
Reference in a new issue