-
Notifications
You must be signed in to change notification settings - Fork 649
Expand file tree
/
Copy pathSearch.jsx
More file actions
31 lines (25 loc) · 868 Bytes
/
Search.jsx
File metadata and controls
31 lines (25 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import FormControl from '@mui/material/FormControl';
import InputAdornment from '@mui/material/InputAdornment';
import OutlinedInput from '@mui/material/OutlinedInput';
import Box from '@mui/material/Box';
import SearchOutlined from '@ant-design/icons/SearchOutlined';
export default function Search() {
return (
<Box sx={{ width: '100%', ml: { xs: 0, md: 1 } }}>
<FormControl sx={{ width: { xs: '100%', md: 224 } }}>
<OutlinedInput
size="small"
id="header-search"
startAdornment={
<InputAdornment position="start" sx={{ mr: -0.5 }}>
<SearchOutlined />
</InputAdornment>
}
aria-describedby="header-search-text"
slotProps={{ input: { 'aria-label': 'weight' } }}
placeholder="Ctrl + K"
/>
</FormControl>
</Box>
);
}