UNPKG

@nish1896/rhf-mui-components

Version:

A suite of 20+ production-ready react-hook-form components built with material-ui. Fully typed, tree-shakable, and optimized for enterprise-grade forms.

17 lines (16 loc) 442 B
import { jsx, jsxs } from "react/jsx-runtime"; //#region src/common/FormLabelText.tsx const FormLabelText = ({ label, required }) => { return /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "row" }, children: [label, required && /* @__PURE__ */ jsx("span", { className: "MuiFormLabel-asterisk MuiInputLabel-asterisk", children: "\xA0*" })] }); }; //#endregion export { FormLabelText as default };