/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/data/material/components/text-fields/Inputs.js
20 строк
587 B
Brijesh Bittu
[code-infra] Remove React import requirement for jsx (#47146)
29 окт 2025, 20:55
Не верифицирован
29 окт 2025, 20:55
6c9e82f
Код
Авторство
О чём код?
import Box from '@mui/material/Box'; import Input from '@mui/material/Input'; const ariaLabel = { 'aria-label': 'description' }; export default function Inputs() { return ( <Box component="form" sx={{ '& > :not(style)': { m: 1 } }} noValidate autoComplete="off" > <Input defaultValue="Hello world" inputProps={ariaLabel} /> <Input placeholder="Placeholder" inputProps={ariaLabel} /> <Input disabled defaultValue="Disabled" inputProps={ariaLabel} /> <Input defaultValue="Error" error inputProps={ariaLabel} /> </Box> ); }