Relative Content

Tag Archive for reactjsmaterial-ui

Multiple Autocomplete with multiple options (tags) MUI React

I have a form where the user can choose a country from a list (autocomplete), and when the user selects a country, it’s respective regions (cities or states) will appear in another autocomplete with multiple options so the user can select multiple regions. The problem is, I should show multiple of these 2 lists when the user clicks on the ‘add’ FAB, so the user can choose to add another country with it’s regions to choose from. The useState of regions duplicate the regions in the console log. How can I solve this? Or is there a better way to handle this form, a better design maybe?

Separate text styling

I have a question regarding the styling of the following text. I would like to style the number separately. In other words, I want to make the number larger than the text. How can I apply the inline style with the following code?

Separate text styling

I have a question regarding the styling of the following text. I would like to style the number separately. In other words, I want to make the number larger than the text. How can I apply the inline style with the following code?

Facing issue in adding Action button on Error Banner

import React, { useCallback, useEffect, useState } from “react”; import VideoContainerView from “../selfView/VideoContainerView”; import Button from “src/common/Button/Button”; import { useTwilioUserMediaContext } from “../../call-sdk/context/TwilioUserMediaContext”; import { useNavigate } from “react-router-dom”; import ErrorBoundary from “../ErrorBoundary”; import { datadogRum } from “@datadog/browser-rum”; import HelpScreenDialog from “./HelpScreen/HelpScreenDialog”; import { useCall } from “src/call-sdk/context/CallContext”; import { useToast } from “src/context/ToastContext”; […]

MUI popover closing if the pointer is getting inside it

I have a MUI popover which gets opened while hovering a div and will get closed once the mouse pointer leaves the div. But this makes the popover close if the pointer leaves the div and enter popover element too. How can this be solved?

SideBar covering part of Header

In React js, I have a Header component and a SideBar (Mini variant drawer) component in different files, and only the SideBar drawer is from MUI 5 in dashboard page.
How can I make Header on top of the SideBar or shift the logo to the right in the header when the drawer is opened?