mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
33 lines
629 B
TypeScript
33 lines
629 B
TypeScript
import { Meta, StoryObj } from "@storybook/react";
|
|
|
|
import FlashMessage from ".";
|
|
|
|
import "../../index.scss";
|
|
|
|
const meta: Meta<typeof FlashMessage> = {
|
|
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,
|
|
},
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof FlashMessage>;
|
|
|
|
export const Default: Story = {};
|