Skip to content

Commit

Permalink
add test for mui#33339
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Jul 24, 2023
1 parent f5664ad commit 84add6f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/mui-material/src/TextField/TextField.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as React from 'react';
import TextField from '@mui/material/TextField';
import { expectType } from '@mui/types';
import Typography from '@mui/material/Typography';
import { FormHelperTextProps } from '@mui/material/FormHelperText';

{
// https://github.com/mui/material-ui/issues/12999
Expand Down Expand Up @@ -92,3 +94,17 @@ function FocusHandlerTest() {

return null;
}

{
const HelperText = ({ children }: FormHelperTextProps) => (
<Typography component="h6">{children}</Typography>
);

<TextField
sx={{ mt: 4 }}
label="Enter some stuff"
defaultValue="Hello"
helperText="Hello, world!"
FormHelperTextProps={{ component: HelperText }}
/>;
}

0 comments on commit 84add6f

Please sign in to comment.