@cgi-learning-hub/ui
Version:
@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features
47 lines (46 loc) • 942 B
JavaScript
import { jsx as t } from "react/jsx-runtime";
import { T as e } from "../../Tooltip-C5AffX17.js";
import { B as r } from "../../Button-C1mKNW-c.js";
const l = (o) => /* @__PURE__ */ t(e, { ...o, children: /* @__PURE__ */ t(r, { children: "Hover to display tooltip" }) }), i = {
title: "Components/Tooltip",
component: l,
argTypes: {
arrow: {
control: "boolean"
},
followCursor: {
control: "boolean"
},
placement: {
control: "select",
options: [
"bottom-end",
"bottom-start",
"bottom",
"left-end",
"left-start",
"left",
"right-end",
"right-start",
"right",
"top-end",
"top-start",
"top"
]
},
title: {
control: "text"
}
}
}, p = {
args: {
arrow: !1,
followCursor: !1,
placement: "bottom",
title: "Title"
}
};
export {
p as Default,
i as default
};