UNPKG

@snups/rjsf-mantine

Version:

Mantine theme, fields and widgets for react-jsonschema-form

11 lines 540 B
import { jsx as _jsx } from "react/jsx-runtime"; import { TranslatableString } from '@snups/rjsf-utils'; import IconButton from './IconButton'; import { Plus } from '../icons'; /** The `AddButton` renders a button that represent the `Add` action on a form */ export default function AddButton(props) { const { registry: { translateString }, } = props; return (_jsx(IconButton, { title: translateString(TranslatableString.AddItemButton), variant: 'subtle', ...props, icon: _jsx(Plus, {}) })); } //# sourceMappingURL=AddButton.js.map