2024-01-19 11:10:26 +09:00

27 lines
485 B
TypeScript

import type { Meta, StoryObj } from "@storybook/react";
import AlertError from "./AlertError";
const meta: Meta<typeof AlertError> = {
title: "CSUI/AlertError",
component: AlertError,
};
export default meta;
type Story = StoryObj<typeof AlertError>;
export const Default: Story = {
args: {
children: "Error!",
},
};
export const WithRestartButton: Story = {
args: {
children: "Rate limit Error!",
retryAction: () => {
alert("restart!");
},
},
};