Skip to content

Commit

Permalink
Standard input not loading correctly mui#39157 Fixed this issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NmN03jain committed Oct 1, 2023
1 parent ed315c5 commit b2ae353
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions docs/data/material/components/text-fields/BasicTextFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,27 @@ export default function BasicTextFields() {
autoComplete="off"
>
<TextField id="outlined-basic" label="Outlined" variant="outlined" />
<TextField id="filled-basic" label="Filled" variant="filled" />
<TextField id="standard-basic" label="Standard" variant="standard" />
<TextField
id="filled-basic"
label="Filled"
variant="filled"
sx={{ // Add custom styles for the filled variant
'& .MuiFilledInput-root': {
backgroundColor: 'inherit', // Set the background color to inherit
},
}}
/>
<TextField
id="standard-basic"
label="Standard"
variant="standard"
sx={{ // Add custom styles for the standard variant
'& .MuiInputBase-root': {
border: '1px solid #e0e0e0', // Set the border for the standard variant
},
}}
/>
</Box>
);
}

0 comments on commit b2ae353

Please sign in to comment.