fleet/frontend/components/Modal/Modal.stories.tsx
Gabriel Hernandez 8168ff3655
update storybook to 8.4.7 (#25451)
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`
2025-01-20 16:17:33 +00:00

34 lines
632 B
TypeScript

import React from "react";
import { Meta, StoryObj } from "@storybook/react";
import { noop } from "lodash";
import Modal from ".";
import "../../index.scss";
const meta: Meta<typeof Modal> = {
component: Modal,
title: "Components/Modal",
args: {
title: "Test modal",
className: "",
onExit: noop,
},
};
export default meta;
type Story = StoryObj<typeof Modal>;
export const Default: Story = {
decorators: [
(Story) => (
<div style={{ height: "300px" }}>
<Story />
</div>
),
],
args: {
children: <div>This is a test description with lots of information.</div>,
},
};