From 3cbed5e0613c3e9e9fa843807b65a220a49b5f3a Mon Sep 17 00:00:00 2001 From: CHAE Date: Thu, 25 Jan 2024 16:32:12 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20Badge=20=EC=BB=B4=ED=8F=AC=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=20=EB=AC=B8=EC=84=9C=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Badge/Badge.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Badge/Badge.tsx b/src/components/Badge/Badge.tsx index c33822e..54c55a6 100644 --- a/src/components/Badge/Badge.tsx +++ b/src/components/Badge/Badge.tsx @@ -9,12 +9,15 @@ import * as styles from "./Badge.css"; export type BadgeVariantType = keyof typeof badgeVariants; export interface BadgeProps { + /** Badge의 스타일을 결정합니다. */ variant: BadgeVariantType; + /** Badge안에 내용이 들어갑니다. */ children: ReactNode; } export const badgeVariantList = objectKeys(badgeVariants); +/** Badge는 빠른 인식을 위해 항목의 상태를 강조하기 위해 사용되는 컴포넌트입니다. */ export function Badge({ variant, children }: BadgeProps) { const badgeStyle = classnames( styles.badgeBase,