Skip to content

v2.0.1

Compare
Choose a tag to compare
@csandman csandman released this 19 Nov 19:24
· 20 commits to master since this release

Switched to hooks and native React event listeners.

Breaking changes

  • Now has a peer dependency of >[email protected] due to the internal use of hooks.
  • All settings props are now set as base props of the component, no longer using a settings object prop or data- props.
  • Remove unused transition and glare-prerender props.
  • The max-glare setting has been changed to the camel cased maxGlare base prop.

New Features

  • There is now a glareStyle prop to add custom styles to the glare on tilt. These will be overwritten by the native styles that are required for the component to function.
  • There are 3 new event callbacks that can be added to the component, onMouseEnter, onMouseMove, and onMouseLeave.
  • The callback for the custom tiltChange event can now be added as a prop onTiltChange instead of manually adding an event listener.