chore: add Gallery story

feat/type-attributes
Tomáš Mládek 2023-01-21 13:55:48 +01:00
parent e2fa7d9e67
commit db60b4156c
1 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,40 @@
import type { Meta, StoryObj } from "@storybook/svelte";
import Gallery from "../components/widgets/Gallery.svelte";
import {
imageAddress,
imageVerticalAddress,
videoAddress,
videoVerticalAddress,
} from "./common";
import RouterDecorator from "./RouterDecorator.svelte";
const meta: Meta<Gallery> = {
title: "Widgets/Gallery",
component: Gallery,
tags: ["autodocs"],
args: {
entities: [
imageAddress,
imageVerticalAddress,
videoAddress,
videoVerticalAddress,
],
},
decorators: [() => RouterDecorator],
};
export default meta;
type Story = StoryObj<Gallery>;
export const Plain: Story = {
args: {
thumbnails: false,
},
};
export const Thumbnails: Story = {
args: {
thumbnails: true,
},
};