UNPKG

@teknim/rjsf-mantine

Version:

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

19 lines (15 loc) 499 B
import { ThemeProps } from '@rjsf/core'; import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; import { generateTemplates } from '../templates'; import { generateWidgets } from '../widgets'; export function generateTheme< T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any >(): ThemeProps<T, S, F> { return { templates: generateTemplates<T, S, F>(), widgets: generateWidgets<T, S, F>(), }; } export default generateTheme();