Skip to content

Commit

Permalink
deprecate onClick
Browse files Browse the repository at this point in the history
  • Loading branch information
fkhadra committed Nov 1, 2022
1 parent 3afe7ef commit 80fab3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ interface CommonOptions {
containerId?: Id;

/**
* @deprecated
* ⚠️ Will be removed in the next major release. You can pass a react component with you handler instead.
*
* Fired when clicking inside toaster
*/
onClick?: (event: React.MouseEvent) => void;
Expand Down

0 comments on commit 80fab3c

Please sign in to comment.