@openoleg/mui
Version:
Material UI 7 theme, fields and widgets for react-jsonschema-form
11 lines • 590 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import AddIcon from '@mui/icons-material/Add';
import IconButton from '@mui/material/IconButton/index.js';
import { TranslatableString } from '@rjsf/utils';
/** The `AddButton` renders a button that represent the `Add` action on a form
*/
export default function AddButton({ uiSchema, registry, ...props }) {
const { translateString } = registry;
return (_jsx(IconButton, { title: translateString(TranslatableString.AddItemButton), ...props, color: 'primary', children: _jsx(AddIcon, {}) }));
}
//# sourceMappingURL=AddButton.js.map