upend/webui/src/stories/BlobViewer.stories.ts

41 lines
800 B
TypeScript
Raw Normal View History

import type { Meta, StoryObj } from "@storybook/svelte";
import BlobViewer from "../components/display/BlobViewer.svelte";
2023-01-21 13:26:18 +01:00
import {
imageAddress,
imageVerticalAddress,
videoAddress,
videoVerticalAddress,
} from "./common";
const meta: Meta<BlobViewer> = {
title: "Blobs/BlobViewer",
component: BlobViewer,
tags: ["autodocs"],
argTypes: {
detail: {
control: {
2023-01-20 13:15:58 +01:00
type: "boolean",
},
},
},
};
export default meta;
type Story = StoryObj<BlobViewer>;
2023-01-21 13:26:18 +01:00
export const Image: Story = {
args: { address: imageAddress },
};
export const ImageVertical: Story = {
args: { address: imageVerticalAddress },
};
export const Video: Story = {
args: { address: videoAddress },
};
2023-01-20 13:15:58 +01:00
export const VideoVertical: Story = {
args: { address: videoVerticalAddress },
};