codex-marketplace-ui-compon.../stories/Card.stories.ts

32 lines
689 B
TypeScript
Raw Permalink Normal View History

2024-08-20 13:57:58 +00:00
import type { Meta, StoryObj } from "@storybook/react";
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
style: { "--codex-border-radius": "0px" },
},
};