2025-01-20 16:17:33 +00:00
|
|
|
import { Meta, StoryObj } from "@storybook/react";
|
2021-11-07 06:41:09 +00:00
|
|
|
|
|
|
|
|
import FlashMessage from ".";
|
|
|
|
|
|
|
|
|
|
import "../../index.scss";
|
|
|
|
|
|
2025-01-20 16:17:33 +00:00
|
|
|
const meta: Meta<typeof FlashMessage> = {
|
2021-11-07 06:41:09 +00:00
|
|
|
component: FlashMessage,
|
|
|
|
|
title: "Components/FlashMessage",
|
|
|
|
|
argTypes: {
|
|
|
|
|
fullWidth: {
|
|
|
|
|
control: "boolean",
|
|
|
|
|
},
|
|
|
|
|
isPersistent: {
|
|
|
|
|
control: "boolean",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
args: {
|
|
|
|
|
fullWidth: true,
|
|
|
|
|
isPersistent: true,
|
|
|
|
|
notification: {
|
|
|
|
|
message: "I am a message. Hear me roar!",
|
|
|
|
|
alertType: "success",
|
|
|
|
|
isVisible: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-01-20 16:17:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default meta;
|
2021-11-07 06:41:09 +00:00
|
|
|
|
2025-01-20 16:17:33 +00:00
|
|
|
type Story = StoryObj<typeof FlashMessage>;
|
2021-11-07 06:41:09 +00:00
|
|
|
|
2025-01-20 16:17:33 +00:00
|
|
|
export const Default: Story = {};
|