Skip to content

Commit e32cca0

Browse files
author
sikkzz
committed
feat: 컴포넌트 변경
1 parent 1682e36 commit e32cca0

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

apps/tuk-web/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
"dependencies": {
1212
"next": "15.4.2",
1313
"react": "19.1.0",
14-
"react-dom": "19.1.0",
15-
"tuk-ui": "workspace:*"
14+
"react-dom": "19.1.0"
1615
},
1716
"devDependencies": {
1817
"@types/node": "^20",

apps/tuk-web/src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button } from 'tuk-ui';
1+
import { Button } from '../components/button/Button';
22

33
export default function Page() {
44
return (
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
2+
children: React.ReactNode;
3+
}
4+
5+
export const Button = ({ children, className = '', ...props }: ButtonProps) => {
6+
return (
7+
<button
8+
className={`rounded-lg px-4 py-2 bg-blue-500 text-white hover:bg-blue-600 ${className}`}
9+
{...props}
10+
>
11+
{children}
12+
</button>
13+
);
14+
};

0 commit comments

Comments
 (0)