/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/data/material/getting-started/templates/dashboard/components/Search.js
25 строк
777 B
Brijesh Bittu
[code-infra] Remove React import requirement for jsx (#47146)
29 окт 2025, 20:55
Не верифицирован
29 окт 2025, 20:55
6c9e82f
Код
Авторство
О чём код?
import FormControl from '@mui/material/FormControl'; import InputAdornment from '@mui/material/InputAdornment'; import OutlinedInput from '@mui/material/OutlinedInput'; import SearchRoundedIcon from '@mui/icons-material/SearchRounded'; export default function Search() { return ( <FormControl sx={{ width: { xs: '100%', md: '25ch' } }} variant="outlined"> <OutlinedInput size="small" id="search" placeholder="Search…" sx={{ flexGrow: 1 }} startAdornment={ <InputAdornment position="start" sx={{ color: 'text.primary' }}> <SearchRoundedIcon fontSize="small" /> </InputAdornment> } inputProps={{ 'aria-label': 'search', }} /> </FormControl> ); }