File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed
Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 1- import { Button } from 'tuk-ui ' ;
1+ import { Button } from '../components/button/Button ' ;
22
33export default function Page ( ) {
44 return (
Original file line number Diff line number Diff line change 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+ } ;
You can’t perform that action at this time.
0 commit comments