mirror of
https://github.com/prymitive/karma
synced 2026-05-13 03:56:59 +00:00
24 lines
469 B
JavaScript
24 lines
469 B
JavaScript
import React from "react";
|
|
import PropTypes from "prop-types";
|
|
|
|
import { Tooltip } from "react-tippy";
|
|
|
|
import "react-tippy/dist/tippy.css";
|
|
|
|
const TooltipWrapper = ({ children, ...props }) => (
|
|
<Tooltip
|
|
delay={[1000, 100]}
|
|
size="small"
|
|
touchHold={true}
|
|
style={{ display: "inline-block", "maxWidth": "100%" }}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</Tooltip>
|
|
);
|
|
Tooltip.propTypes = {
|
|
children: PropTypes.node.isRequired
|
|
};
|
|
|
|
export { TooltipWrapper };
|