Spaces:
Runtime error
Runtime error
File size: 899 Bytes
cd8bd0a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | import type { Meta, StoryObj } from "@storybook/react";
import Callout from "./Callout";
const meta: Meta<typeof Callout> = {
title: "Docs/Callout",
component: Callout,
argTypes: {
type: {
control: "select",
options: ["info", "warning", "danger"],
},
},
};
export default meta;
type Story = StoryObj<typeof Callout>;
export const Default: Story = {
args: {
type: "info",
title: "Information",
children: "This is a helpful hint to guide users through the documentation.",
},
};
export const Warning: Story = {
args: {
type: "warning",
title: "Warning",
children: "Be careful when modifying these settings as they can affect system stability.",
},
};
export const Danger: Story = {
args: {
type: "danger",
title: "Critical",
children: "Deleting this resource is irreversible and will remove all associated data.",
},
};
|