UNPKG

@lonli-lokli/dynamic-forms-mui

Version:

Material UI 5 theme, fields and widgets for react-jsonschema-form

11 lines 612 B
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 '@lonli-lokli/dynamic-forms-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