Skip to content

Commit

Permalink
refactor: Button 컴포넌트에 className prop로 전달
Browse files Browse the repository at this point in the history
  • Loading branch information
yunchaehyun committed Dec 2, 2023
1 parent e812f5b commit 5ee5bc8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface ButtonProps
full?: boolean;
variant: ButtonVariantType;
children: ReactNode;
className?: string;
}

export function Button({
Expand All @@ -24,11 +25,13 @@ export function Button({
type = "button",
disabled = false,
onClick,
className = "",
}: ButtonProps) {
const buttonStyle = classnames(
styles.buttonBase,
styles.buttonVariants[variant],
full ? widthFull : "",
className,
);

return (
Expand Down

0 comments on commit 5ee5bc8

Please sign in to comment.