@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
15 lines (14 loc) • 541 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.useFormFieldHint = void 0;
const common_1 = require("@workday/canvas-kit-react/common");
const useFormFieldModel_1 = require("./useFormFieldModel");
/**
* Adds the necessary props to a `Hint` component.
* Used by the FormField.Hint subcomponent and other input type components
*/
exports.useFormFieldHint = (0, common_1.createElemPropsHook)(useFormFieldModel_1.useFormFieldModel)(({ state }) => {
return {
id: `hint-${state.id}`,
};
});
;