Skip to content

Commit

Permalink
docs: Badge 컴포넌트 문서화
Browse files Browse the repository at this point in the history
  • Loading branch information
yunchaehyun committed Jan 25, 2024
1 parent aade336 commit 3cbed5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3cbed5e

Please sign in to comment.