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

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

16 lines
442 B
Plaintext
Raw Permalink Normal View History

2025-12-12 14:26:25 +09:00
<div {...getRootProps()}>
<Label {...getInputLabelProps()}>useAutocomplete</Label>
<Input {...getInputProps()} />
</div>
{groupedOptions.length > 0 ? (
<Listbox {...getListboxProps()}>
{groupedOptions.map((option, index) => {
const { key, ...optionProps } = getOptionProps({ option, index });
return (
<li key={key} {...optionProps}>
{option.title}
</li>
);
})}
</Listbox>
) : null}