forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Document TextField helperText height (mui#22146)
- Loading branch information
1 parent
8dfe01c
commit d625cec
Showing
5 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
docs/src/pages/components/text-fields/HelperTextAligned.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import TextField from '@material-ui/core/TextField'; | ||
|
||
const useStyles = makeStyles({ | ||
root: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
}, | ||
}); | ||
|
||
export default function HelperTextAligned() { | ||
const classes = useStyles(); | ||
return ( | ||
<div className={classes.root}> | ||
<TextField helperText="Please enter your name" label="Name" /> | ||
<TextField helperText=" " label="Name" /> | ||
</div> | ||
); | ||
} |
20 changes: 20 additions & 0 deletions
20
docs/src/pages/components/text-fields/HelperTextAligned.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import TextField from '@material-ui/core/TextField'; | ||
|
||
const useStyles = makeStyles({ | ||
root: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
}, | ||
}); | ||
|
||
export default function HelperTextAligned() { | ||
const classes = useStyles(); | ||
return ( | ||
<div className={classes.root}> | ||
<TextField helperText="Please enter your name" label="Name" /> | ||
<TextField helperText=" " label="Name" /> | ||
</div> | ||
); | ||
} |
20 changes: 20 additions & 0 deletions
20
docs/src/pages/components/text-fields/HelperTextMisaligned.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import TextField from '@material-ui/core/TextField'; | ||
|
||
const useStyles = makeStyles({ | ||
root: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
}, | ||
}); | ||
|
||
export default function HelperTextMisaligned() { | ||
const classes = useStyles(); | ||
return ( | ||
<div className={classes.root}> | ||
<TextField helperText="Please enter your name" label="Name" /> | ||
<TextField label="Name" /> | ||
</div> | ||
); | ||
} |
20 changes: 20 additions & 0 deletions
20
docs/src/pages/components/text-fields/HelperTextMisaligned.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import TextField from '@material-ui/core/TextField'; | ||
|
||
const useStyles = makeStyles({ | ||
root: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
}, | ||
}); | ||
|
||
export default function HelperTextMisaligned() { | ||
const classes = useStyles(); | ||
return ( | ||
<div className={classes.root}> | ||
<TextField helperText="Please enter your name" label="Name" /> | ||
<TextField label="Name" /> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters