27 lines
580 B
TypeScript
27 lines
580 B
TypeScript
import type { Meta, StoryObj } from "@storybook/react";
|
|
import { LoadingOverlay } from "./loading-overlay";
|
|
|
|
const meta: Meta<typeof LoadingOverlay> = {
|
|
title: "Atoms/LoadingOverlay",
|
|
component: LoadingOverlay,
|
|
parameters: { layout: "fullscreen" },
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof LoadingOverlay>;
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
isVisible: true,
|
|
title: "Processing your order...",
|
|
subtitle: "This may take a moment",
|
|
},
|
|
};
|
|
|
|
export const SimpleMessage: Story = {
|
|
args: {
|
|
isVisible: true,
|
|
title: "Loading...",
|
|
},
|
|
};
|