Skip to content

Commit

Permalink
Add tippy animation css into UI Kit itself
Browse files Browse the repository at this point in the history
  • Loading branch information
rushi committed Dec 23, 2024
1 parent 6688de5 commit c96e6a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Tooltip.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import PropTypes from "prop-types";
import React from "react";
import { followCursor } from "tippy.js"; // Dont remove this even if unused. It is required for one prop
import "tippy.js/dist/tippy.css"; // If we customize the style, the change this and import our own style
// Do not remove these https://atomiks.github.io/tippyjs/v6/animations/
import "tippy.js/animations/perspective.css";
import "tippy.js/animations/scale.css";
import "tippy.js/animations/shift-away.css";
import "tippy.js/animations/shift-toward.css";

// TODO: Implement "as='div'"
export const Tooltip = ({ children, className, content, ...rest }) => {
Expand Down

0 comments on commit c96e6a0

Please sign in to comment.