Files
react-test/docs/data/material/components/autocomplete/DisabledOptions.tsx.preview

8 lines
231 B
Plaintext
Raw Normal View History

2025-12-12 14:26:25 +09:00
<Autocomplete
options={timeSlots}
getOptionDisabled={(option) =>
option === timeSlots[0] || option === timeSlots[2]
}
sx={{ width: 300 }}
renderInput={(params) => <TextField {...params} label="Disabled options" />}
/>