diff --git a/docs/data/material/components/text-fields/BasicTextFields.js b/docs/data/material/components/text-fields/BasicTextFields.js index 36d3ec53a967d5..412fc4edba020e 100644 --- a/docs/data/material/components/text-fields/BasicTextFields.js +++ b/docs/data/material/components/text-fields/BasicTextFields.js @@ -2,38 +2,28 @@ import * as React from 'react'; import Box from '@mui/material/Box'; import TextField from '@mui/material/TextField'; +const filledTextFieldStyles = { + '& .MuiFilledInput-root': { + backgroundColor: 'inherit', + }, +}; + +const standardTextFieldStyles = { + '& .MuiInputBase-root': { + border: '1px solid #e0e0e0', + }, +}; + export default function BasicTextFields() { return ( :not(style)': { m: 1, width: '25ch' }, - }} noValidate autoComplete="off" > - - + + ); } - diff --git a/docs/data/material/components/text-fields/BasicTextFields.tsx b/docs/data/material/components/text-fields/BasicTextFields.tsx index 7253adf126e2b6..412fc4edba020e 100644 --- a/docs/data/material/components/text-fields/BasicTextFields.tsx +++ b/docs/data/material/components/text-fields/BasicTextFields.tsx @@ -2,19 +2,28 @@ import * as React from 'react'; import Box from '@mui/material/Box'; import TextField from '@mui/material/TextField'; +const filledTextFieldStyles = { + '& .MuiFilledInput-root': { + backgroundColor: 'inherit', + }, +}; + +const standardTextFieldStyles = { + '& .MuiInputBase-root': { + border: '1px solid #e0e0e0', + }, +}; + export default function BasicTextFields() { return ( :not(style)': { m: 1, width: '25ch' }, - }} noValidate autoComplete="off" > - - + + ); }