UNPKG

@aokiapp/rjsf-mantine-theme

Version:

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

11 lines 653 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Button } from '@mantine/core'; import { IconPlus } from '@tabler/icons-react'; import { TranslatableString } from '@rjsf/utils'; /** The `AddButton` renders a button that represent the `Add` action on a form */ export default function AddButton({ uiSchema, registry, color, ...props }) { const { translateString } = registry; return (_jsx(Button, { title: translateString(TranslatableString.AddItemButton), color: color, variant: 'light', ...props, leftSection: _jsx(IconPlus, {}), children: translateString(TranslatableString.AddItemButton) })); } //# sourceMappingURL=AddButton.js.map