mirror of
https://github.com/theoleuthardt/werkzeugkiste.git
synced 2026-06-13 09:37:53 +00:00
feat: startpage done, needed components implemented, first tool began
This commit is contained in:
parent
6da16f3858
commit
448065c715
6 changed files with 83 additions and 27 deletions
21
src/components/Button.tsx
Normal file
21
src/components/Button.tsx
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
"use client";
|
||||
import React from "react";
|
||||
|
||||
interface ButtonProps {
|
||||
className?: string;
|
||||
content: string;
|
||||
onClick?: Function;
|
||||
}
|
||||
|
||||
const Button = (props: ButtonProps) => {
|
||||
return (
|
||||
<button
|
||||
className={`p-3 border-2 border-white rounded-xl ` + props.className}
|
||||
onClick={() => props.onClick && props.onClick()}
|
||||
>
|
||||
{props.content}
|
||||
</button>
|
||||
);
|
||||
};
|
||||
|
||||
export default Button;
|
||||
Loading…
Add table
Add a link
Reference in a new issue