New button component

This commit is contained in:
= 2024-12-05 21:19:41 +01:00
parent 583b14ce0d
commit ebf4620640
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,12 @@
import { ReactNode, MouseEventHandler } from 'react';
interface ButtonProps {
onClick: MouseEventHandler<HTMLButtonElement>;
children: ReactNode;
}
export default function Button({ onClick, children }: ButtonProps) {
return (
<button onClick={onClick} className="ni-button" role="button">{children}</button>
)
}