upend/webui/src/stories/UpObjectCard.stories.ts

47 lines
905 B
TypeScript
Raw Normal View History

import type { Meta, StoryObj } from "@storybook/svelte";
import UpObjectCard from "../components/display/UpObjectCard.svelte";
import { imageAddress } from "./common";
import RouterDecorator from "./RouterDecorator.svelte";
const address = imageAddress;
const meta: Meta<UpObjectCard> = {
title: "Display/UpObjectCard",
component: UpObjectCard,
tags: ["autodocs"],
args: {
address,
},
argTypes: {
address: {
defaultValue: address,
name: "Address",
type: "string",
},
},
2023-01-21 18:55:50 +01:00
decorators: [() => RouterDecorator],
};
export default meta;
type Story = StoryObj<UpObjectCard>;
2023-01-21 18:55:50 +01:00
export const Default: Story = {};
export const WithLabels: Story = {
args: {
labels: ["Label 1", "Label B", "Label III"],
},
};
2023-01-21 18:55:50 +01:00
export const WithoutThumbnail: Story = {
args: {
thumbnail: false,
},
};
export const Small: Story = {
args: {
banner: false,
},
};