import React from 'react'; import { UserOutlined } from '@ant-design/icons'; import { AutoComplete, Flex, Input } from 'antd'; const Title: React.FC> = (props) => ( {props.title} more ); const renderItem = (title: string, count: number) => ({ value: title, label: ( {title} {count} ), }); const options = [ { label: , options: [renderItem('AntDesign', 10000), renderItem('AntDesign UI', 10600)], }, { label: <Title title="Solutions" />, options: [renderItem('AntDesign UI FAQ', 60100), renderItem('AntDesign FAQ', 30010)], }, { label: <Title title="Articles" />, options: [renderItem('AntDesign design language', 100000)], }, ]; const App: React.FC = () => ( <AutoComplete popupClassName="certain-category-search-dropdown" popupMatchSelectWidth={500} style={{ width: 250 }} options={options} size="large" > <Input.Search size="large" placeholder="input here" /> </AutoComplete> ); export default App;