diff --git a/ReactWithDotNet/ThirdPartyLibraries/FramerMotion/motion.cs b/ReactWithDotNet/ThirdPartyLibraries/FramerMotion/motion.cs index 989cc573d..9c9cfe8e2 100644 --- a/ReactWithDotNet/ThirdPartyLibraries/FramerMotion/motion.cs +++ b/ReactWithDotNet/ThirdPartyLibraries/FramerMotion/motion.cs @@ -27,6 +27,10 @@ public sealed class div : ElementBase public dynamic whileHover { get; } = new ExpandoObject(); public static IModifier Modify(Action
modifyAction) => CreateThirdPartyReactComponentModifier(modifyAction); + + [ReactProp] + [ReactGrabEventArgumentsByUsingFunction("ReactWithDotNet::Core::CalculateSyntheticMouseEventArguments")] + public MouseEventHandler onClick { get; set; } } public sealed class button : ElementBase @@ -51,5 +55,9 @@ public sealed class button : ElementBase [ReactProp] [ReactTransformValueInClient(Core__ReplaceNullWhenEmpty)] public dynamic whileHover { get; } = new ExpandoObject(); + + [ReactProp] + [ReactGrabEventArgumentsByUsingFunction("ReactWithDotNet::Core::CalculateSyntheticMouseEventArguments")] + public MouseEventHandler onClick { get; set; } } } \ No newline at end of file