# Combobox
**Category:** Components
**Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-combobox--introduction
## Variants documented in Storybook
- ComboboxSize: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-combobox--comboboxsize
- FilterMode: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-combobox--filtermode
- StatusVariant: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-combobox--statusvariant
## Framework setup
### HTML / CDN
```html
```
### React
```bash
npm install ux4g-web-components
```
```jsx
import 'ux4g-web-components/styles.css';
import 'ux4g-web-components/design-system';
```
### Angular
Update `angular.json`:
```json
{
"styles": [
"node_modules/ux4g-web-components/styles/ux4g.css",
"src/styles.css"
],
"scripts": [
"node_modules/ux4g-web-components/dist/runtime/design-system.js"
]
}
```
## Code examples
The snippets below are extracted from the Storybook canvas for Combobox. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup.
### 1. Combobox Size — ComboboxSize cb-size-single
HTML:
```html
Combo Box combines a text input with a dropdown overlay, enabling both selection from a list and direct text input.
Visual demonstration of the primary Combobox selection modes.
Quickly copy sizing and variant utility classes for Comboboxes.
|
Single Choice Logic
ux4g-combobox-single
|
|
Multi Choice Logic
ux4g-combobox-multi
|
|
Large
ux4g-combobox-lg
|
|
Medium
ux4g-combobox-md
|
|
Small
ux4g-combobox-sm
|
Combo Box combines a text input with a dropdown overlay, enabling both selection from a list and direct text input.
Visual demonstration of the primary Combobox selection modes.
Quickly copy sizing and variant utility classes for Comboboxes.
|
Single Choice Logic
ux4g-combobox-single
|
|
Multi Choice Logic
ux4g-combobox-multi
|
|
Large
ux4g-combobox-lg
|
|
Medium
ux4g-combobox-md
|
|
Small
ux4g-combobox-sm
|
Combo Box combines a text input with a dropdown overlay, enabling both selection from a list and direct text input.
Visual demonstration of the primary Combobox selection modes.
Quickly copy sizing and variant utility classes for Comboboxes.
|
Single Choice Logic
ux4g-combobox-single
|
|
Multi Choice Logic
ux4g-combobox-multi
|
|
Large
ux4g-combobox-lg
|
|
Medium
ux4g-combobox-md
|
|
Small
ux4g-combobox-sm
|