mirror of
https://github.com/picocss/pico.git
synced 2025-04-22 09: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
22
stories/embedded-content/source.stories.ts
Normal file
22
stories/embedded-content/source.stories.ts
Normal file
|
@ -0,0 +1,22 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "EmbeddedContent/Source",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
type: "video/mp4",
|
||||
src: "https://www.example.com/video.mp4",
|
||||
srcset:
|
||||
"https://www.example.com/video_720p.mp4 720w, https://www.example.com/video_1080p.mp4 1080w",
|
||||
sizes: "100vw",
|
||||
media: "(min-width: 600px)",
|
||||
height: 240,
|
||||
width: 320,
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("source", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
Loading…
Add table
Add a link
Reference in a new issue