35 lines
752 B
TypeScript
35 lines
752 B
TypeScript
|
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",
|
||
|
},
|
||
|
},
|
||
|
decorators: [() => RouterDecorator]
|
||
|
};
|
||
|
|
||
|
export default meta;
|
||
|
type Story = StoryObj<UpObjectCard>;
|
||
|
|
||
|
export const Plain: Story = {};
|
||
|
|
||
|
export const WithLabels: Story = {
|
||
|
args: {
|
||
|
labels: ["Label 1", "Label B", "Label III"],
|
||
|
},
|
||
|
};
|