Skip to content

Commit

Permalink
docs: IconButton 컴포넌트 문서화
Browse files Browse the repository at this point in the history
  • Loading branch information
YuHyun-P committed Feb 5, 2024
1 parent 6e7e4d7 commit 8f21114
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/IconButton/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ import * as styles from "./IconButton.css";

export interface IconButtonProps
extends Pick<ButtonHTMLAttributes<HTMLButtonElement>, "onClick"> {
/** IconButton의 className을 설정합니다. className을 통해 스타일을 확장할 수 있습니다. */
className?: string;
/** IconButton안에 들어갈 아이콘 컴포넌트입니다. */
children: ReactNode;
}

/** IconButton는 아이콘만 존재하는 버튼 컴포넌트입니다. */
export default function IconButton({
className = "",
children,
Expand Down

0 comments on commit 8f21114

Please sign in to comment.