Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] remove ErrorList from FormProps docs, fix bad theme imports #3770

Merged
merged 3 commits into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions packages/docs/docs/api-reference/form-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ The value of this prop will be passed to the `enctype` [HTML attribute on the fo

This prop allows passing in custom errors that are augmented with the existing JSON Schema errors on the form; it can be used to implement asynchronous validation. See [Validation](../usage/validation.md) for more information.

## ErrorList

You can pass a React component to this prop to customize how form errors are displayed. See [Validation](../usage/validation.md) for more information.

## fields

Dictionary of registered fields in the form. See [Custom Widgets and Fields](../advanced-customization/custom-widgets-fields.md) for more information.
Expand Down
6 changes: 3 additions & 3 deletions packages/docs/docs/migration-guides/v5.x upgrade guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ or

```tsx
import { withTheme } from '@rjsf/core';
import Theme from '@rjsf/material-ui/v5';
import { Theme } from '@rjsf/material-ui/v5';
// Make modifications to the theme with your own fields and widgets
const Form = withTheme(Theme);
```
Expand All @@ -551,7 +551,7 @@ or

```tsx
import { withTheme } from '@rjsf/core';
import Theme5 from '@rjsf/material-ui';
import { Theme as Theme5 } from '@rjsf/material-ui';
// Make modifications to the theme with your own fields and widgets
const Form = withTheme(Theme5);
```
Expand All @@ -566,7 +566,7 @@ or

```tsx
import { withTheme } from '@rjsf/core';
import Theme from '@rjsf/mui';
import { Theme } from '@rjsf/mui';
// Make modifications to the theme with your own fields and widgets
const Form = withTheme(Theme);
```