codex-marketplace-ui-compon.../stories/Failure.stories.ts

33 lines
640 B
TypeScript
Raw Permalink Normal View History

2024-08-20 13:57:58 +00:00
import type { Meta, StoryObj } from "@storybook/react";
import { Failure } from "../src/components/Failure/Failure";
2024-08-20 13:57:58 +00:00
const meta = {
title: "Content/Failure",
component: Failure,
parameters: {
layout: "centered",
},
tags: ["autodocs"],
argTypes: {},
} satisfies Meta<typeof Failure>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
title: "Some error",
code: 500,
message: "Something went wrong",
},
};
export const WithAction: Story = {
args: {
title: "Some error",
code: 500,
message: "Something went wrong",
onClick: () => {},
},
};