syncfusion-react-dropdowns
Comprehensive guide for implementing Syncfusion React dropdown components including AutoComplete, ComboBox, DropDownList, ListBox, Mention, MultiSelect, and MultiColumn ComboBox. Use this when building selection interfaces, data binding, filtering, cascading dropdowns, custom templates, and accessible dropdown experiences in React applications.
What this skill does
# Implementing Syncfusion React Dropdowns
## AutoComplete
The AutoComplete component provides a matched suggestion list as the user types into an input field, allowing selection from the filtered results. It supports local and remote data, rich filtering options, templates, grouping, virtualization, and full accessibility.
### Documentation and Navigation Guide
#### Getting Started
๐ **Read:** [references/getting-started.md](references/autocomplete-getting-started.md)
- Package installation (`@syncfusion/ej2-react-dropdowns`)
- CSS imports and theme configuration
- Basic component setup (functional and class components)
- Binding a simple string array
- Configuring popup height and width (`popupHeight`, `popupWidth`)
#### Data Binding
๐ **Read:** [references/data-binding.md](references/autocomplete-data-binding.md)
- Array of strings or numbers
- Array of objects with `fields` mapping (`value`, `groupBy`, `iconCss`)
- Array of complex/nested objects (dot-notation field mapping)
- Remote data with `DataManager` (ODataV4Adaptor, WebApiAdaptor)
- Using `query` property to filter/select remote data
- `sortOrder` for alphabetical ordering
#### Filtering
๐ **Read:** [references/filtering.md](references/autocomplete-filtering.md)
- Filter types: `StartsWith`, `EndsWith`, `Contains`
- `suggestionCount` โ limit number of suggestions
- `minLength` โ minimum characters before search triggers
- `ignoreCase` โ case-sensitive filtering
- `ignoreAccent` โ diacritics filtering
- `debounceDelay` โ delay filtering to reduce requests
- Custom filtering with the `filtering` event
#### Grouping
๐ **Read:** [references/grouping.md](references/autocomplete-grouping.md)
- Grouping items using `fields.groupBy`
- Fixed and inline group headers
- Custom group header with `groupTemplate`
#### Templates
๐ **Read:** [references/templates.md](references/autocomplete-templates.md)
- `itemTemplate` โ customize each list item
- `groupTemplate` โ customize group header
- `headerTemplate` โ static popup header
- `footerTemplate` โ static popup footer
- `noRecordsTemplate` โ message when no data found
- `actionFailureTemplate` โ message on remote fetch failure
#### Value Binding
๐ **Read:** [references/value-binding.md](references/autocomplete-value-binding.md)
- Binding primitive values (string, number)
- Object binding with `allowObjectBinding`
- Presetting selected values with the `value` property
#### Virtualization
๐ **Read:** [references/virtual-scroll.md](references/autocomplete-virtual-scroll.md)
- `enableVirtualization` for large datasets
- Injecting the `VirtualScroll` service
- Virtual scrolling with local data, remote data, and grouping
- Customizing item count with `query.take()`
#### Disabled Items
๐ **Read:** [references/disabled-items.md](references/autocomplete-disabled-items.md)
- Disabling items via `fields.disabled`
- `disableItem` method for dynamic disabling
- Disabling the entire component with `enabled={false}`
#### Accessibility and Localization
๐ **Read:** [references/accessibility-localization.md](references/autocomplete-accessibility-localization.md)
- WAI-ARIA roles and attributes
- Keyboard navigation shortcuts
- RTL support (`enableRtl`)
- Localization with `L10n` (noRecordsTemplate, actionFailureTemplate text)
- WCAG 2.2 compliance overview
#### Styling and Customization
๐ **Read:** [references/styling.md](references/autocomplete-styling.md)
- CSS class targets for wrapper, icon, focus, placeholder, selection
- Float label customization
- Popup item appearance
- `cssClass` property for custom class injection
- Popup resize (`allowResize`)
- Mandatory asterisk styling
#### How-To: Autofill, Highlight, and Icons
๐ **Read:** [references/how-to.md](references/autocomplete-how-to.md)
- `autofill` โ suggest first matched item on Arrow Down
- `highlight` โ highlight typed characters in suggestion list
- Icon support with `fields.iconCss`
#### API Reference
๐ **Read:** [references/api.md](references/autocomplete-api.md)
- All properties with types, defaults, and descriptions
- All methods with parameters and return types
- All events with descriptions
### Quick Start Example
> **Installation:** Pin packages to a specific major version to reduce supply-chain risk.
> ```bash
> npm install @syncfusion/ej2-react-dropdowns@^33.x.x @syncfusion/ej2-react-inputs@^33.x.x @syncfusion/ej2-base@^33.x.x
> ```
```tsx
import { AutoCompleteComponent } from '@syncfusion/ej2-react-dropdowns'; // ^33.x.x
import '@syncfusion/ej2-base/styles/tailwind3.css';
import '@syncfusion/ej2-react-inputs/styles/tailwind3.css';
import '@syncfusion/ej2-react-dropdowns/styles/tailwind3.css';
const sportsData: string[] = [
'Badminton', 'Basketball', 'Cricket', 'Football',
'Golf', 'Hockey', 'Rugby', 'Snooker', 'Tennis'
];
export default function App() {
return (
<AutoCompleteComponent
id="sports-ac"
dataSource={sportsData}
placeholder="Find a game"
/>
);
}
```
### Common Patterns
#### Object data source with field mapping
```tsx
const sportsData = [
{ id: 'Game1', game: 'Badminton' },
{ id: 'Game2', game: 'Basketball' },
];
const fields = { value: 'game' };
<AutoCompleteComponent dataSource={sportsData} fields={fields} placeholder="Find a game" />
```
#### Remote data binding (security-first)
> **Security:** Do not call arbitrary third-party URLs directly from client code. Route external API calls through a trusted server-side proxy that enforces allowed endpoints, authentication, rate limits, and response validation.
```tsx
import { DataManager, ODataV4Adaptor, Query } from '@syncfusion/ej2-data';
// Use a controlled server proxy endpoint here. Do not use public third-party URLs directly.
const customerData = new DataManager({
adaptor: new ODataV4Adaptor(),
crossDomain: true,
url: 'https://your-trusted-proxy.example/api/customers'
});
const query = new Query().from('Customers').select(['ContactName', 'CustomerID']).take(6);
const fields = { value: 'ContactName' };
<AutoCompleteComponent
dataSource={customerData}
query={query}
fields={fields}
sortOrder="Ascending"
placeholder="Find a customer" />
```
#### Filtering with custom options
```tsx
<AutoCompleteComponent
dataSource={sportsData}
filterType="StartsWith"
minLength={2}
suggestionCount={5}
debounceDelay={300}
ignoreCase={true}
placeholder="Type to search"
/>
```
#### Accessing methods via ref
```tsx
import { AutoCompleteComponent } from '@syncfusion/ej2-react-dropdowns';
import { useRef } from 'react';
export default function App() {
const acRef = useRef<AutoCompleteComponent>(null);
return (
<>
<AutoCompleteComponent ref={acRef} dataSource={sportsData} placeholder="Find a game" />
<button onClick={() => acRef.current?.showPopup()}>Open</button>
<button onClick={() => acRef.current?.clear()}>Clear</button>
</>
);
}
```
## ComboBox
The ComboBox component provides a dropdown input that allows users to type to filter or select from a predefined list. It supports local and remote data binding, custom values, filtering, grouping, templates, virtual scrolling, and full accessibility.
### Component Overview
The ComboBox is a **specialized dropdown input** that bridges typed input fields with selection lists. Key characteristics:
- **Hybrid input:** User can type to filter OR select from dropdown
- **Smart filtering:** Default filter searches by text, customizable for complex scenarios
- **Flexible data:** Supports strings, JSON objects, OData, Web APIs, DataManager
- **Rich UI:** Templates for items, headers, footers, selected values, no-results states
- **Performance:** Virtual scrolling efficiently handles thousands of items
- **Global ready:** Built-in localization, RTL support, ARIA attributes
- **Accessible:** Full keyboard navigation, screen reader support
> **Installation:** Pin packages to a specific major version to reduce supply-chain risk.
> ```bash
> npm install @syncfusion/ej2-react-dropdRelated in Web Dev
generating-lwc-components
IncludedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use generating-apex), Aura components, or Visualforce.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Set up queries with useQuery, mutations with useMutation, configure QueryClient caching strategies, implement optimistic updates, and handle infinite scroll with useInfiniteQuery. Use when: setting up data fetching in React projects, migrating from v4 to v5, or fixing object syntax required errors, query callbacks removed issues, cacheTime renamed to gcTime, isPending vs isLoading confusion, keepPreviousData removed problems.
document-processor-api
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
nutrient-document-processing
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infiniteQueryOptions. Use when setting up data fetching, fixing v4โv5 migration errors (object syntax, gcTime, isPending, keepPreviousData), or debugging SSR/hydration issues with streaming server components.
accelint-nextjs-best-practices
IncludedNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions, or API routes; optimizing RSC serialization, data fetching, or server-side rendering; reviewing Next.js code for performance issues; fixing authentication in Server Actions; or implementing Suspense boundaries, parallel data fetching, or request deduplication.