-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Hi! First I would like to say thank you for doing such a so nice project!
I'm having an issue when I'm trying to add an onClick to a Button component. I'm trying to do it like this:
<Button primary className="advance-button" onClick={onClickContinue}>Continue</Button>
And I'm getting this error message:
Type '{ children: string; primary: true; className: string; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps & { children?: ReactNode; }'.
Property 'onClick' does not exist on type 'IntrinsicAttributes & ButtonProps & { children?: ReactNode; }'. TS2322
I believe we should be able to use onClick on Buttons. If I'm doing something wrong please let me know!
Metadata
Metadata
Assignees
Labels
No labels