@etsoo/materialui
Version:
TypeScript Material-UI Implementation
13 lines (12 loc) • 458 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import React from "react";
import { CustomFieldUtils } from "./CustomFieldUtils";
import Divider from "@mui/material/Divider";
/**
* Divider field creator
* type: divider
* @returns Component
*/
export const FieldDivider = ({ field }) => {
return (_jsxs(React.Fragment, { children: [CustomFieldUtils.createMultilineLabel(field.label), _jsx(Divider, { ...field.mainSlotProps })] }));
};