@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
28 lines (26 loc) • 764 B
JavaScript
import { Box } from "../box/box.js";
import { bg } from "./consts.js";
import { jsx } from "react/jsx-runtime";
//#region src/tooltip/tooltipContent.tsx
const TooltipContent = ({ children, disabled, fontSize = "16px", maxWidth = "400px", minWidth, whiteSpace = "pre-wrap", wordBreak = "break-word" }) => /* @__PURE__ */ jsx(Box, {
bg: disabled ? bg.disabled : bg.regular,
borderRadius: 1,
boxShadow: 2,
className: "vui-tooltip-content",
color: "white",
display: "block",
fontSize,
minW: minWidth,
maxW: maxWidth,
overflowY: "auto",
py: 1,
px: 2,
whiteSpace,
wordBreak,
children
});
TooltipContent.displayName = "TooltipContent";
//#endregion
export { TooltipContent };
globalThis.__vuiVersion__ = "5.3.1"
//# sourceMappingURL=tooltipContent.js.map