Files
react-test/docs/data/joy/components/autocomplete/Grouped.tsx.preview

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
305 B
Plaintext
Raw Normal View History

2025-12-12 14:26:25 +09:00
<FormControl id="grouped-demo">
<FormLabel>With categories</FormLabel>
<Autocomplete
options={options.sort((a, b) => -b.firstLetter.localeCompare(a.firstLetter))}
groupBy={(option) => option.firstLetter}
getOptionLabel={(option) => option.title}
sx={{ width: 300 }}
/>
</FormControl>