mirror of
https://github.com/picocss/pico.git
synced 2025-04-27 03:36:13 -04:00
28 lines
664 B
TypeScript
28 lines
664 B
TypeScript
import { createHTMLElement } from "../HTMLElement";
|
|
|
|
export default {
|
|
title: "ImageAndMultimedia/Video",
|
|
tags: ["autodocs"],
|
|
args: {
|
|
src: "https://www.w3schools.com/html/mov_bbb.mp4",
|
|
controls: true,
|
|
autoplay: false,
|
|
controlslist: "nodownload",
|
|
crossorigin: "anonymous",
|
|
disablepictureinpicture: false,
|
|
disableremoteplayback: false,
|
|
height: 240,
|
|
width: 320,
|
|
loop: false,
|
|
muted: false,
|
|
playsinline: false,
|
|
poster: "https://picsum.photos/200/300",
|
|
preload: "auto",
|
|
},
|
|
// Render the <html> element
|
|
render: (args) => {
|
|
return createHTMLElement("video", args);
|
|
},
|
|
};
|
|
|
|
export const Default = {};
|