22,695 questions
0
votes
0
answers
20
views
Android Side Sheet Dialog Dismiss on Content View Click
Side Sheet Dialog Layout:
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/...
0
votes
0
answers
61
views
Transparency with Jetpack Compose Cards
I'd like to display a Card with a transparency of 0.5. However, that suddenly shows a rectangle in the middle of the card.
Left without transparency, right with 0.1f.
The code is really simple:
@...
-1
votes
0
answers
21
views
How does MUI keep its build size small? Do they externalize most dependencies? [closed]
I’m trying to understand how Material UI keeps its build size low.
Do they externalize most of their dependencies (other than peer deps), or use some other strategy?
I’ve seen Babel helpers imported ...
-3
votes
0
answers
42
views
Exception when using MUI with rspack: _emotion_styled__rspack_import_0 is not a function
When using rspack with typescript and Material UI (MUI) with React to run in development mode, the following error is thrown:
_emotion_styled__rspack_import_0 is not a function TypeError: ...
Advice
0
votes
0
replies
62
views
css/react/mui border radius like
Graphic designer designed this component that should display forms and messages like an auth form...
I'm a bit confused on how should I code the top right border... I thought a simple border-radius ...
-1
votes
0
answers
36
views
MUI X-date-pickers output and none visible redundant characters
I'm using "@mui/x-date-pickers": "^8.19.0" and @mui/material": "^7.3.4" in a "next": "15.5.6" application with "react-dom": "19.2....
0
votes
2
answers
55
views
Define custom CSS variables in MUI for both light and dark mode
This is my theme config in my MUI app:
import { createTheme } from '@mui/material/styles';
declare module '@mui/material/styles' {
interface Theme {
myVariable: string;
}
interface ...
0
votes
1
answer
42
views
Simple Mui TextField crashing in RTL locale
My application is there for a long time and everything works perfectly in both the locales we support en and ar.
So I don't think there is any issue with the localization setup.
But now for a simple ...
1
vote
1
answer
55
views
Material UI TimePicker not auto-selecting initial value when using renderDigitalClockTimeView
I'm using MUI v6 Time Pickers and I'm trying to use renderDigitalClockTimeView as the viewRenderer for my time picker component.
I set an initial value, and it correctly shows up in the input field. ...
0
votes
1
answer
122
views
Edit the date using the text field while opening the calendar popup
Currently, I'm using @mui/x-date-pickers v7 to display a calendar. My requirement is to keep the calendar open while changing the date using the text field.
Current behavior: When clicking the text ...
0
votes
0
answers
31
views
How to disable certain options in a MultiChoiceItems MaterialAlertDialog
Im having trouble disabling certain options in a MaterialAlertDialog when using MultiChoiceItems.
The problem that I am having is that I can get them to appear to be disabled, yet they still work ...
1
vote
0
answers
82
views
Why can't I select an option in an Autocomplete MUI component when testing?
I am building a React application. In one of my components, the first thing that appears is a dialog where you have to select an option from an autocomplete component. This is mandatory for the ...
0
votes
0
answers
78
views
Safari browser translation resets input cursor
I'm working on a React.js app with MaterialUI for the components. I'm having a problem with Safari browser (although it may happen on Firefox too. It works fine on Chrome tho). When Safari automatic ...
2
votes
1
answer
70
views
How to control height/size of the each dropdown on mat-option using system tokens - md3/angular20
I've been using newest Angular Material in Angular 20.
Trying to control stuff using mat.*-overrides but I can't find the option to change height of each mat-option inside of the form-field inside the ...
2
votes
2
answers
171
views
new TypeError("Wrong module specifier", "") with react import
I would like to import a simple mui component.
My component:
import Button from "@mui/material/Button";
export default function Bar() {
return <Button variant="contained">...
2
votes
1
answer
155
views
How to create a searchable dropdown/autocomplete TextField in Jetpack Compose without the suggestion list stealing focus?
My Goal:
I'm trying to implement an autocomplete TextField in Jetpack Compose. The desired behavior is:
A user starts typing in a TextField.
A list of suggestions, filtered by the user's input, ...
0
votes
1
answer
80
views
MUI - Round border radius FormControl
I have a FormControl which currently looks something like this:
Now the problem is in the image below, the label Username is getting set at the edge due to the borderRadius which is making the label ...
0
votes
1
answer
84
views
Inexplicable npm Error with @mui and x-date-pickers
I deleted the node_modules folder and package-lock.json, and ran this:
Meteor npm install @mui/[email protected]
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm ...
0
votes
1
answer
50
views
Why does the grid item container breaks into new line by default and does not do the same with xs breakpoint?
Can you please help me to understand why the following code lays out the nested container into a new line - as shown in the output below.
<Grid container>
<Grid item bgcolor={'red'}&...
1
vote
1
answer
64
views
The undesired horizontal stretch when an item container enclosed by a grid item has grid item around it
When a nested item container surrounded by a grid item as under, it gives the layout as shown below. As expected, it does not stretch horizontally and vertically.
import Grid from '@mui/material/...
0
votes
0
answers
55
views
ImageList gets blurry when rendering many items
I’m building a project with React Three Fiber and using from @react-three/drei to render regular React DOM elements inside the 3D scene. Inside the I’m rendering a Material UI ImageList with a ...
0
votes
1
answer
40
views
Using JSS `makeStyles`/`withStyles` during an incremental migration between MUI versions
We're starting an incremental migration from MUI v4 to v5, so we'll have both v4 and v5 components in the app at once, as described here. For now we're keeping JSS makeStyles/withStyles until the ...
0
votes
0
answers
153
views
Implementation of Floating toolbar with FAB
I am trying to achieve that result:
But I have serious issues with the XML implementation.
I tried:
<!-- Floating Toolbar -->
<com.google.android.material.floatingtoolbar....
1
vote
1
answer
70
views
Whenever I select the dropdowns in iframe, it soft scrolls to the top of the form
In a React app, the sign-up component behaves correctly. However, when embedded in an iframe, choosing any option in a dropdown causes the viewport to scroll to the top of the form.
Here is the react ...
0
votes
0
answers
22
views
MUI TimePicker - change mask text when "on click" in the textfield
I have a MUI textfield which looks like this :
And the code looks like this. (I have set the placeholder text to "--:--")
<LocalizationProvider dateAdapter={AdapterDateFns} adapterLocale=...
0
votes
1
answer
108
views
How can I print a React MUI page?
I want to print a page ( or just a rendered component ) and tried https://www.npmjs.com/package/react-to-pdf ( I also tried https://www.npmjs.com/package/react-to-print with same results )
My app is ...
0
votes
0
answers
101
views
Material UI Icons fails to download with Yarn
I'm trying to add @mui/icons-material:7.3.2 with yarn using the following command:
yarn add @mui/icons-material --verbose
The command gets as far as:
verbose 43.4185964 Performing "GET" ...
1
vote
1
answer
67
views
Is it possible to customize the spacing inside a custom React MUI treeview item?
I would like to use the default MUI treeview component but based on props I also want to add content to the left and right side of the label.
Based on the documentation this is what I've tried so far
...
0
votes
1
answer
81
views
Dropdown menu widget scroll thumb not reaching the bottom
In the provided, I have scrolled to the bottom of the Dropdown, but still the thumb of the scroll is not reaching the bottom as it is stuck there, the code snippet is
DropdownMenu<DropdownType>(
...
0
votes
0
answers
58
views
Header checkbox (“select all”) doesn’t update selection in production (works in local dev)
I have a MUI Dialog that contains several DataGrid components (one per “group” of skills).
Each DataGrid allows multiple selection via checkboxes. I store the selected row IDs per group in state, then ...
1
vote
1
answer
151
views
MUI DateTimePicker: How to make earlier time options not visible?
I am creating a MUI DateTimePicker component . The goal is to :
Disable and Not Show AM, if its already PM for the day
If its PM, Not Show the Earlier Hours in PM
Currently, I got them to be ...
2
votes
0
answers
51
views
How to align a timeline line while letting content container grow upwards/dowards based on the orientation?
I am building a horizontal timeline component in React using Material-UI (MUI).Each timeline item (TimelineGroupEl) has 3 main parts stacked vertically: A content box, a timeline line and an icon ...
0
votes
0
answers
36
views
Why doesn’t my MUI Joy extendTheme override the Autocomplete Popper inset style?
I’m trying to override the default styles of the Joy UI Autocomplete component using extendTheme. Specifically, I want to change the inset value of the dropdown Popper. However, my theme override does ...
0
votes
1
answer
43
views
Why does a MaterialUI Grid grows in width when rows are added?
I've got a <Box> whose purpose is to center content on the page, both horizontally and vertically (got the formula from here). Then I'm experimenting with a <Grid> in order to build a form ...
0
votes
1
answer
47
views
Is there a way to know why MUI system is not working on my React-based app?
I have downloaded the correct version of React, as well as the correct version of the MUI interface. However, whenever I try to incorporate it within the app, there are type-resolve warnings that I am ...
-2
votes
1
answer
86
views
When the drawer is attached a specific <div>, the open animation slides in the background instead of the drawer itself
We are using the MUI Drawer component. When the drawer is attached to a specific <div> using the Modal tag, the background page (not the drawer) slides into position instead of the drawer. The ...
0
votes
1
answer
57
views
DataGrid UL in column only renders first LI
I have a MUI data grid that renders a UL element for a column, like this:
renderCell: (params) => {
return <ul>
<li>
...
0
votes
1
answer
83
views
React Material - how to stop tabs unloading content
Being a little bit newish to React.
I am just prototyping a UI in Material Design 3 and React (TypeScript). Using the most very basic example - the issue I am having is with tabs unloading when they ...
1
vote
1
answer
233
views
TanStack Table sticky header with maintain custom Search and sort state
Im using tanstack table to display my data in table in my react app (vite)
i have added custom header for columns and these headers have manual(Server side) search box and sort- Im getting an issue ...
0
votes
0
answers
41
views
Sorting in Custom MUI Table with Formik Editable Fields is very slow
I have an InvoiceTable component and a custom editable invoice field.
I am using Formik, and I am calculating an initialSortedData before Formik is initialized.
Once Formik is initialized, all data, ...
1
vote
1
answer
80
views
MUI DateTimePicker Input Hour Styling
In the React MUI Datepicker,
how do I remove extra 0, for a Single Hour time?
Right now, its showing an extra 0 here.
Goal is following,
03:00 PM --> 3:00 PM
<LocalizationProvider dateAdapter={...
1
vote
1
answer
90
views
MUI DateTimePicker Color Styling
I am editing the colors of the MUI Date Time Picker. Is this the optimal way, or is there another more formal way in MUI Inputs? I didn't find any in the reference, so directly edited the sx.
<...
1
vote
1
answer
314
views
How to properly handle onBlur with MUI <DatePicker />
I'm using MUI's <DatePicker /> integrated with Formik, and I want to mark the field as touched only when the user has finished interacting with the date picker — not immediately when it gains ...
-1
votes
1
answer
39
views
Material UI Box SX prop typed as any
Im using material ui 7. For some reason on all my Box elements the sx props does not get typed, they are asserted as "any" - And i dont understand why.
In another project i have, the sx ...
1
vote
1
answer
121
views
How do I make a DatePicker get focused on submit, if the field is empty or giving errors?
I'm trying to use @mui/x-date-pickers: "^8.3.1 DatePicker component in a form with react-hook-form: "^7.62.0"
Using some workarounds, I managed to give errors on blur and on submit, but ...
0
votes
1
answer
75
views
How to position MUI Dialog in the top-right corner?
I'm working on a React project using MUI, and I need to position the Dialog component in the top-right corner of the screen.
Additionally, I do not want the default overlay (backdrop) to be shown.
...
0
votes
2
answers
248
views
NextJs hydration error when using MUI library
So I have server side rendering with page.tsx like so:
import Button from '@mui/material/Button'
export default async function Home() {
return (
<div>
<Button variant="...
0
votes
1
answer
59
views
Custom MUI Table Layout – Data Columns Not Aligning with Header Columns
I'm working on a custom layout using MUI where I want to display exam data in a compact scrollable table. The idea is to keep the Exam Name and Percentage columns static (not scrollable), while making ...
0
votes
0
answers
95
views
Adding NEW rows to a mui-x-data-grid-premium
I have a <DataGridPremium> component and I've read the docs on copying and pasting. There appears to be no way to create new rows in a table from the clipboard.
I understand I can use ...
2
votes
1
answer
89
views
How to make reCaptcha component full width
I'm using reCaptch v2 on my react app. To do that i'm using react-google-recaptcha npm package. Its looks like below atm.
I need that component to take the fullwidth of the form. So how to do that? I ...