Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
56 lines
1.2 KiB
JavaScript
56 lines
1.2 KiB
JavaScript
import * as React from 'react';
|
|
import TextField from '@mui/material/TextField';
|
|
import Visibility from '@mui/icons-material/Visibility';
|
|
import InputAdornment from '@mui/material/InputAdornment';
|
|
|
|
export default function BaselineAlignTextField() {
|
|
return (
|
|
<div>
|
|
<div
|
|
style={{
|
|
display: 'flex',
|
|
flexDirection: 'row',
|
|
alignItems: 'baseline',
|
|
}}
|
|
>
|
|
Base
|
|
<TextField
|
|
label="label"
|
|
placeholder="placeholder"
|
|
variant="standard"
|
|
InputProps={{
|
|
startAdornment: (
|
|
<InputAdornment position="start">
|
|
<Visibility />
|
|
</InputAdornment>
|
|
),
|
|
}}
|
|
/>
|
|
Base
|
|
</div>
|
|
<div
|
|
style={{
|
|
display: 'flex',
|
|
flexDirection: 'row',
|
|
alignItems: 'baseline',
|
|
}}
|
|
>
|
|
Base
|
|
<TextField
|
|
label="label"
|
|
placeholder="placeholder"
|
|
variant="standard"
|
|
InputProps={{
|
|
endAdornment: (
|
|
<InputAdornment position="end">
|
|
<Visibility />
|
|
</InputAdornment>
|
|
),
|
|
}}
|
|
/>
|
|
Base
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|