@abgov/react-components 6.7.1-alpha.2 → 6.7.1-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -3801,18 +3801,22 @@ function GoabThreeColumnLayout(props) {
3801
3801
  );
3802
3802
  }
3803
3803
  function GoabTooltip(props) {
3804
- return /* @__PURE__ */ jsxRuntime.jsx(
3804
+ const isStringContent = typeof props.content === "string";
3805
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3805
3806
  "goa-tooltip",
3806
3807
  {
3807
3808
  position: props.position,
3808
- content: props.content,
3809
+ content: isStringContent ? props.content : void 0,
3809
3810
  halign: props.hAlign,
3810
3811
  testid: props.testId,
3811
3812
  mt: props.mt,
3812
3813
  mr: props.mr,
3813
3814
  mb: props.mb,
3814
3815
  ml: props.ml,
3815
- children: props.children
3816
+ children: [
3817
+ !isStringContent && props.content && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "content", children: props.content }),
3818
+ props.children
3819
+ ]
3816
3820
  }
3817
3821
  );
3818
3822
  }