mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
For #25349 This updates storybook and its addons to 8.4.7. This is done to remove the transitive dependency on path-to-regexp, which is no longer used in this version of storybook. This will fix the original vulnerability issue for `path-to-regexp`
34 lines
656 B
TypeScript
34 lines
656 B
TypeScript
import React from "react";
|
|
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 = {};
|