2024-08-20 13:57:58 +00:00
|
|
|
import type { Meta, StoryObj } from "@storybook/react";
|
2024-08-21 15:14:40 +00:00
|
|
|
import { Card } from "../src/components/Card/Card";
|
|
|
|
import React from "react";
|
2024-08-20 13:57:58 +00:00
|
|
|
|
|
|
|
const meta = {
|
|
|
|
title: "Components/Card",
|
|
|
|
component: Card,
|
|
|
|
parameters: {
|
|
|
|
layout: "centered",
|
|
|
|
},
|
|
|
|
tags: ["autodocs"],
|
|
|
|
argTypes: {},
|
|
|
|
} satisfies Meta<typeof Card>;
|
|
|
|
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
|
|
|
|
export const Default: Story = {
|
|
|
|
args: {
|
|
|
|
title: "Hello",
|
2024-08-23 13:31:37 +00:00
|
|
|
children: React.createElement("div", {}, "Hello World !"),
|
2024-08-20 13:57:58 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const CustomStyle: Story = {
|
|
|
|
args: {
|
|
|
|
title: "Hello",
|
2024-08-23 13:31:37 +00:00
|
|
|
children: React.createElement("div", {}, "Hello World !"),
|
2024-08-20 13:57:58 +00:00
|
|
|
},
|
|
|
|
};
|