mirror of
https://github.com/picocss/pico.git
synced 2025-04-27 19:46:14 -04:00
24 lines
524 B
TypeScript
24 lines
524 B
TypeScript
![]() |
import { createHTMLElement } from "../HTMLElement";
|
||
|
|
||
|
export default {
|
||
|
title: "ImageAndMultimedia/Audio",
|
||
|
tags: ["autodocs"],
|
||
|
args: {
|
||
|
src: "https://www.w3schools.com/html/horse.mp3",
|
||
|
controls: true,
|
||
|
autoplay: false,
|
||
|
controlslist: "nodownload",
|
||
|
crossorigin: "anonymous",
|
||
|
disableremoteplayback: false,
|
||
|
loop: false,
|
||
|
muted: false,
|
||
|
preload: "auto",
|
||
|
},
|
||
|
// Render the <html> element
|
||
|
render: (args) => {
|
||
|
return createHTMLElement("audio", args);
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export const Default = {};
|