@nish1896/rhf-mui-components
Version:
A suite of 20+ reusable Material UI components for React Hook Form to minimize your time and effort in creating and styling forms
6 lines (5 loc) • 358 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
const FormLabelText = ({ label, required }) => {
return (_jsxs("div", { style: { display: 'flex', flexDirection: 'row' }, children: [label, required && (_jsx("span", { className: "MuiFormLabel-asterisk MuiInputLabel-asterisk", children: "\u00A0*" }))] }));
};
export default FormLabelText;