mirror of
https://github.com/picocss/pico.git
synced 2025-04-27 11:36:14 -04:00
29 lines
664 B
TypeScript
29 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 = {};
|