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

Error in docs : bad import in basic MUI usage #3760

Closed
3 of 4 tasks
leonbloy opened this issue Jul 12, 2023 · 0 comments · Fixed by #3770
Closed
3 of 4 tasks

Error in docs : bad import in basic MUI usage #3760

leonbloy opened this issue Jul 12, 2023 · 0 comments · Fixed by #3770

Comments

@leonbloy
Copy link

Prerequisites

What theme are you using?

mui

Version

5.x

Current Behavior

The docs in the main page for MUI

https://github.com/rjsf-team/react-jsonschema-form/blob/main/packages/mui/README.md

state:

import Form from '@rjsf/mui';
or

import { withTheme } from '@rjsf/core';
import Theme from '@rjsf/mui';

// Make modifications to the theme with your own fields and widgets

const Form = withTheme(Theme);

This works but fails to use the MUI5 theme. The correct import is

import { Theme } from '@rjsf/mui';

Expected Behavior

No response

Steps To Reproduce

No response

Environment

No response

Anything else?

No response

@leonbloy leonbloy added bug needs triage Initial label given, to be assigned correct labels and assigned labels Jul 12, 2023
@leonbloy leonbloy changed the title Error in doc : bad import in basic MUI usage Error in docs : bad import in basic MUI usage Jul 12, 2023
@nickgros nickgros added docs and removed needs triage Initial label given, to be assigned correct labels and assigned labels Jul 14, 2023
@kachkaev kachkaev mentioned this issue Jun 13, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants