styling `TextValidator` in react-material-ui-form-validator - reactjs

I am using react-material-ui-form-validator in my react form for material design as well as for validation, now i want to change the color of shrink label but not able to find any option to styling TextValidator, React material provide option to add class when label is shrink but not this. Any idea how I can use material design with the easy validation in react
this is the package that I am using
https://github.com/NewOldMax/react-material-ui-form-validator

I have resolved it by applying styling with the data-attribute

Related

How to use desktopModeMediaQuery from MUI DatePicker

I like to know to use desktopModeMediaQuery from material ui.
The only link I found was this Material ui resposive date picker.
This also doesn't include how to use desktopModeMediaQuery.
Do I have to import it from mui? or the document says This can be customized with the desktopModeMediaQuery prop. so I can just have this as a prop and I don't have to import it?
How can I use this prop? or is this for stylying?
If you can provide any example of how to use it, I really appreciate it.
I want to display the PC version of DatePicker on the mobile screen.
The doc link for desktopModeMediaQuery
Having DesktopDatePicker component works both on the PC and mobile.
mui.com/x/react-date-pickers/date-picker/#responsiveness

Material-ui Show pop up autocomplete inside the textfield input

Im using material ui v4 and im looking for a way to have an autocomplete functionality when someone writes inside the input but i want the pop up to be shown inside the textfield as the image below.
I looked everywhere but i couldnt find anything relative. Can this be done with material v4?
There are two possible solutions for you:
Material UI V4 Autocomplete
Or
HTML Autocomplete
The first solution, you have to provide your own list of autocomplete options while the second seems to use the browser default autocomplete options.
To Edit how it looks, then you are looking for CSS which is a different question

Antd: prevent style override?

In my tsx react project, I am using styled components and have created a few pages. Now I wanted to use a modal, so I tried using the antd modal. However, the antd styles have completely overridden my page's styles.
for instance, I have set the background and text fonts through styled components, and everything is running automatically. How do I prevent antd from applying it's background and text colors, and make it leave it as whatever it is?

How to create custom tooltip in React Quill Editor?

I'm integrating a custom toolbar that has the link action
When user want to add a link to specific text, I want to override the tooltip behavior of Quill editor from default UI
to a UI like this
I've been searching for the solution and found that this can only be done by creating a new theme, but I don't find the documentation for customizing this part in React Quill.
Any help/idea is appreciated.

how to style such component in material UI in reactjs

I am trying to make such kind of setup using material UI but am unable to do it properly using material UI.
I am not able to add the product add and remove setup below which should be below product name and price as shown in image.
If it is vital to use material-ui for positioning your elements and it expected to be responsive for different screen resolutions you could use https://material-ui.com/components/grid/
Otherwise, you can just use flexbox https://css-tricks.com/snippets/css/a-guide-to-flexbox/
There is a link to codesandbox for expamle made via MU Grids https://codesandbox.io/embed/material-demo-dvhfy?fontsize=14&hidenavigation=1&theme=dark

Resources