@rjsf/semantic-ui
Version:
Semantic UI theme, fields and widgets for react-jsonschema-form
16 lines (12 loc) • 460 B
text/typescript
import { ComponentType } from 'react';
import { withTheme, FormProps } from '@rjsf/core';
import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
import { generateTheme } from '../Theme';
export function generateForm<
T = any,
S extends StrictRJSFSchema = RJSFSchema,
F extends FormContextType = any,
>(): ComponentType<FormProps<T, S, F>> {
return withTheme<T, S, F>(generateTheme<T, S, F>());
}
export default generateForm();