카드 내용이 들어갑니다.
+ ), + }, +}; + +export const WithTitle: TCardStory = { + args: { + children: ( +카드 내용이 들어갑니다.
+ ), + }, +}; + +export const WithDescription: TCardStory = { + args: { + description: "제목에 대한 설명이 들어갑니다.", + children: ( +카드 내용이 들어갑니다.
+ ), + }, +}; + +export const WithRightElement: TCardStory = { + args: { + RightElement: , + children: ( +카드 내용이 들어갑니다.
+ ), + }, +}; + +export const WithDescriptionAndRightElement: TCardStory = { + args: { + description: "데이터 기준 | 2026.01.06 09:13", + RightElement: , + children: ( +카드 내용이 들어갑니다.
+ ), + }, +}; diff --git a/src/components/common/card/Card.tsx b/src/components/common/card/Card.tsx index e69de29b..0e3fffb5 100644 --- a/src/components/common/card/Card.tsx +++ b/src/components/common/card/Card.tsx @@ -0,0 +1,42 @@ +import type { HTMLAttributes, ReactNode } from "react"; +import { twMerge } from "tailwind-merge"; + +export interface ICardProps extends HTMLAttributes{description}
+ )} +{title}
+{value}
+ {trend && ( + + {trend.direction === "up" ? ( ++ 데이터 기준 | 2026.01.06 09:13 +
+