Tooltip with Framer Motion
Abstracting Tooltip into a reusable custom component that uses Framer Motion to create smooth initial and exit animations.
Components
Composing with other components
In the custom TooltipAnchor
component we've created in this example, we're exposing the render
prop to allow the user to render the anchor element however they want.
You can learn more about this pattern on the Composition guide.