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

MUI is not working #16

Open
YogitaKadam14 opened this issue Mar 26, 2022 · 0 comments
Open

MUI is not working #16

YogitaKadam14 opened this issue Mar 26, 2022 · 0 comments

Comments

@YogitaKadam14
Copy link

YogitaKadam14 commented Mar 26, 2022

Hello Team,
I want to use a TextField from '@mui/material'
The style is not applied for @mui component. It works well for material-ui.

Steps to reproduce the behavior:

The code in my app.js

import React, { FC, useContext } from 'react'; import { EventContext } from 'direflow-component' import Button from '@material-ui/core/Button'; import SearchIcon from '@mui/icons-material/Search'; import {TextField,InputAdornment} from '@mui/material'; interface IProps { componentTitle: string; sampleList: string[]; } const App: FC<IProps> = (props) => { const dispatch = useContext(EventContext); return ( <div> <Button variant="contained" color="primary"> My Material UI Button </Button> <TextField size="small" helperText={false} label='Search by Name' InputProps={{ endAdornment: ( <InputAdornment position="end"> <SearchIcon color="disabled" /> </InputAdornment> ), }} /> </div> ); }; App.defaultProps = { componentTitle: 'Membership Component', sampleList: [ 'Create with React', 'Build as Web Component', 'Use it anywhere!', ], } export default App;

** Index.tsx**

import { DireflowComponent } from 'direflow-component' import App from './App'; export default DireflowComponent.create({ component: App, configuration: { tagname: 'membership-component', useShadow: true, }, plugins: [ { name: "material-ui" } ], });
`
output

MUIComponent

MUIComponent2

Thanks and Regards,
Yogita Kadam, SDE-2
Email: [email protected]
Phone: 8623069398

@YogitaKadam14 YogitaKadam14 changed the title MUI3 is not working MUI is not working Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant