@aokiapp/rjsf-mantine-theme
Version:
Mantine theme, fields and widgets for react-jsonschema-form
28 lines (25 loc) • 661 B
JavaScript
import { jsx } from 'react/jsx-runtime';
import { Button } from '@mantine/core';
import { IconPlus } from '@tabler/icons-react';
import { TranslatableString } from '@rjsf/utils';
function AddButton({
uiSchema,
registry,
color,
...props
}) {
const { translateString } = registry;
return /* @__PURE__ */ jsx(
Button,
{
title: translateString(TranslatableString.AddItemButton),
color,
variant: "light",
...props,
leftSection: /* @__PURE__ */ jsx(IconPlus, {}),
children: translateString(TranslatableString.AddItemButton)
}
);
}
export { AddButton as default };
//# sourceMappingURL=AddButton.mjs.map