@payfit/unity-components
Version:
22 lines (21 loc) • 614 B
JavaScript
import { Text as e } from "../../text/Text.js";
import { useFormField as t } from "../FormField.context.js";
import { forwardRef as n } from "react";
import { jsx as r } from "react/jsx-runtime";
//#region src/components/form-field/parts/FormHelperText.tsx
var i = n(({ children: n, ...i }, a) => {
let { formDescriptionId: o } = t();
return /* @__PURE__ */ r(e, {
...i,
id: o,
"data-unity-slot": "helper-text",
variant: "bodySmall",
color: "content.neutral.low",
ref: a,
"data-dd-privacy": "allow",
children: n
});
});
i.displayName = "HelperText";
//#endregion
export { i as FormHelperText };