v2.0.1
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 ordata-
props. - Remove unused
transition
andglare-prerender
props. - The
max-glare
setting has been changed to the camel casedmaxGlare
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
, andonMouseLeave
. - The callback for the custom
tiltChange
event can now be added as a proponTiltChange
instead of manually adding an event listener.