@material-ui/core APIs
- Typography
- Button
- Grid
- TextField
- IconButton
- Paper
- Card
- MenuItem
- AppBar
- Container
- Toolbar
- makeStyles
- Divider
- ListItem
- Tooltip
- CardContent
- CircularProgress
- Box
- List
- Avatar
- FormControl
- ListItemText
- Dialog
- Select
- DialogContent
- Link
- DialogTitle
- CssBaseline
- FormControlLabel
- InputLabel
- DialogActions
- Checkbox
- TableBody
- Menu
- Table
- TableHead
- TableRow
- Drawer
- TableCell
- createMuiTheme
- Tabs
- Tab
- Hidden
- Switch
- InputAdornment
- ThemeProvider
- CardHeader
- Snackbar
- ListItemIcon
- CardActions
- Chip
- LinearProgress
- Input
- DialogContentText
- Collapse
- useMediaQuery
- CardMedia
- TableContainer
- Badge
- Fab
- withStyles
- ListItemAvatar
- ButtonGroup
- Modal
- CardActionArea
- FormGroup
- Radio
- InputBase
- useTheme
- FormHelperText
- ListSubheader
- RadioGroup
- SvgIcon
- ClickAwayListener
- TablePagination
- Slide
- Fade
- Stepper
- StepLabel
- Popover
- Slider
- Accordion
- AccordionSummary
- colors
- Step
- FormLabel
- AccordionDetails
- ExpansionPanel
- ExpansionPanelSummary
- ExpansionPanelDetails
- Backdrop
- Breadcrumbs
- Icon
- ListItemSecondaryAction
- createTheme
- Zoom
- TableSortLabel
- MuiThemeProvider
- TextareaAutosize
- ButtonBase
- StepContent
- createStyles
- NativeSelect
- Grow
- MenuList
- Popper
- useScrollTrigger
- OutlinedInput
- GridList
- GridListTile
- GridListTileBar
- TableFooter
- BottomNavigation
- BottomNavigationAction
- SnackbarContent
- withWidth
- responsiveFontSizes
- capitalize
- green
- lighten
- MobileStepper
- isWidthUp
- ImageList
- ImageListItem
- ImageListItemBar
- ServerStyleSheets
- SwipeableDrawer
- Stack
- Autocomplete
- Rating
- fade
- withMobileDialog
- RootRef
- createSvgIcon
- ExpansionPanelActions
- styled
- alpha
OtherRelated APIs
@material-ui/core#Autocomplete JavaScript Examples
The following examples show how to use
@material-ui/core#Autocomplete.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BlogPostsSearch.js From course-manager with MIT License | 6 votes |
export default function BlogPostsSearch({ posts }) {
return (
<RootStyle>
<Autocomplete
size="small"
disablePortal
popupIcon={null}
options={posts}
getOptionLabel={(post) => post.title}
renderInput={(params) => (
<TextField
{...params}
placeholder="Search post..."
InputProps={{
...params.InputProps,
startAdornment: (
<>
<InputAdornment position="start">
<Box
component={Icon}
icon={searchFill}
sx={{
ml: 1,
width: 20,
height: 20,
color: 'text.disabled'
}}
/>
</InputAdornment>
{params.InputProps.startAdornment}
</>
)
}}
/>
)}
/>
</RootStyle>
);
}