mirror of
https://github.com/picocss/pico.git
synced 2025-04-27 19:46:14 -04:00
feat: add StorybookJS
This commit is contained in:
parent
1039a4788d
commit
cbc1260553
116 changed files with 3560 additions and 2 deletions
23
stories/image-and-multimedia/audio.stories.ts
Normal file
23
stories/image-and-multimedia/audio.stories.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
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 = {};
|
Loading…
Add table
Add a link
Reference in a new issue