Skip to content

Commit b53f1a5

Browse files
committed
feat: 공용 Button 컴포넌트 구현
1 parent 0772860 commit b53f1a5

File tree

1 file changed

+21
-0
lines changed
  • frontend/src/components/commons/button

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { cn } from "@/lib/utils";
2+
3+
interface ButtonProps {
4+
className?: string;
5+
onClick?: () => void;
6+
children?: React.ReactNode;
7+
}
8+
9+
export default function Button({ className, onClick, children }: ButtonProps) {
10+
return (
11+
<button
12+
onClick={onClick}
13+
className={cn(
14+
"rounded-md px-6 py-2 shadow-md transition-colors",
15+
className,
16+
)}
17+
>
18+
{children}
19+
</button>
20+
);
21+
}

0 commit comments

Comments
 (0)