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",
|
|
|
|
children: React.createElement("p", {}, "Hello World !"),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const CustomStyle: Story = {
|
|
|
|
args: {
|
|
|
|
title: "Hello",
|
|
|
|
children: React.createElement("p", {}, "Hello World !"),
|
|
|
|
style: { "--codex-border-radius": "0px" },
|
|
|
|
},
|
|
|
|
};
|