mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
20 lines
368 B
JavaScript
20 lines
368 B
JavaScript
import React from "react";
|
|
|
|
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>
|
|
);
|
|
|
|
export { TooltipWrapper };
|