feat(tooltip): add new tooltip animation

This commit is contained in:
Paul Makles 2022-01-14 21:04:29 +00:00
parent f509acbe80
commit ddbef13a12
2 changed files with 2 additions and 1 deletions

View file

@ -14,7 +14,7 @@ export default function Tooltip(props: Props) {
const { children, content, ...tippyProps } = props;
return (
<Tippy content={content} {...tippyProps}>
<Tippy content={content} animation="shift-away" {...tippyProps}>
{/*
// @ts-expect-error Type mis-match. */}
<div style={`display: flex;`}>{children}</div>

View file

@ -5,6 +5,7 @@
@import "react-overlapping-panels/dist";
@import "tippy.js/dist/tippy.css";
@import "tippy.js/animations/shift-away.css";
.tippy-box {
color: var(--foreground);