generated from lucien/actix-react-template
Chaos Commit
This commit is contained in:
parent
525ce0515c
commit
e1bcb4b022
4 changed files with 107 additions and 0 deletions
19
front/src/components/chaos/monButton.tsx
Normal file
19
front/src/components/chaos/monButton.tsx
Normal file
|
@ -0,0 +1,19 @@
|
|||
import { useState } from "react";
|
||||
|
||||
|
||||
|
||||
export default function MonButton({letter,changetext,sizeFrontw,sizeFronth,rdmFront,color}) {
|
||||
|
||||
|
||||
|
||||
function clicked() {rdmFront();
|
||||
changetext(letter)}
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div>
|
||||
<button className="key" onClick={clicked} style={{width:sizeFrontw,height:sizeFronth,background:color}}>{letter}</button>
|
||||
</div>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue