Skip to content

Commit

Permalink
card component, needs accessiblity and states improvements, boxShadow…
Browse files Browse the repository at this point in the history
…s added to the global tw config
  • Loading branch information
mewdev committed Sep 18, 2024
1 parent 9c4a13c commit 7a6d31a
Show file tree
Hide file tree
Showing 8 changed files with 290 additions and 128 deletions.
54 changes: 54 additions & 0 deletions apps/design-system/stories/card.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import type { Meta, StoryObj } from "@storybook/react";

import { Card } from "@repo/design-system/card";

const meta: Meta<typeof Card> = {
title: "Components/Card",
component: Card,
decorators: [
(Story) => (
<div
style={{
display: "flex",
justifyContent: "center",
backgroundColor: "lightgray",
alignItems: "center",
height: "100vh",
}}
>
<Story />
</div>
),
],
};

type CardStory = StoryObj<typeof meta>;

export const Default: CardStory = {
args: {
children: "Hello, World!",
color: "white",
corner: "topRight",
},
};

export const Border: CardStory = {
args: {
children: "Hello, World!",
color: "white",
corner: "topRight",
border: "default",
},
};

export const BorderAndShadow: CardStory = {
args: {
children: "Hello, World!",
color: "white",
corner: "topRight",
border: "default",
shadow: "default",
},
};

export default meta;
Loading

0 comments on commit 7a6d31a

Please sign in to comment.