Forge Button OnClick with Parameter

Is there any way to pass a parameter to a UI KIt button’s function?

Tried:

<Button text={""} icon={"edit"} onClick={(myvar)=>{
       console.log("test: "+myvar)}
}/>

→ test: undefined

I want a button for each row on a table which allows to edit/delete the row by executing a function with a given parameter.
row with id:1 → doSomething(id)
row with id:2 → doSomething(id)

Thanks for any suggestions!

Found it out :stuck_out_tongue_winking_eye:

<Button text={"edit"} icon={"edit"} onClick={()=>editSomething(myParam)}/>