Autocomplete
A text box that suggests matches from a list as you type, here a list of films.
Add it to your project
Or install the packages yourselfTerminal
npm install @mui/material
First time with Material UI? Set it up once.
The code
'use client';
import TextField from '@mui/material/TextField';
import Autocomplete from '@mui/material/Autocomplete';
import top100Films from './top100Films';
export default function ComboBox() {
return (
<Autocomplete
disablePortal
options={top100Films}
sx={{ width: 300 }}
renderInput={(params) => <TextField {...params} label="Movie" />}This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.