# @zendeskgarden/container-combobox

> Containers relating to Combobox in the Garden Design System

Latest version **2.0.9** (published 2026-07-22) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @zendeskgarden/container-combobox
pnpm add @zendeskgarden/container-combobox
yarn add @zendeskgarden/container-combobox
bun add @zendeskgarden/container-combobox
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.9 |
| Published | 2026-07-22 |
| First published | 2023-03-20 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 77.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Zendesk Garden <garden@zendesk.com> |
| Maintainers | zendesk-garden |
| Keywords | a11y, accessible, container, garden, headless, hook, react, zendesk |

## Links

- npm: https://www.npmjs.com/package/@zendeskgarden/container-combobox
- Repository: https://github.com/zendeskgarden/react-containers
- Homepage: https://garden.zendesk.com/
- Issues: https://github.com/zendeskgarden/react-containers/issues
- npm.io page: https://npm.io/package/@zendeskgarden/container-combobox

## Dependencies (4)

- [downshift](https://npm.io/package/downshift.md) ^9.0.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.8.4
- [@zendeskgarden/container-field](https://npm.io/package/@zendeskgarden/container-field.md) ^3.0.22
- [@zendeskgarden/container-utilities](https://npm.io/package/@zendeskgarden/container-utilities.md) ^2.0.5

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.9 (latest) — 2026-07-22
- 2.0.8 — 2025-12-15
- 2.0.7 — 2025-12-02
- 2.0.6 — 2025-08-05
- 2.0.5 — 2025-07-09
- 2.0.4 — 2024-09-25
- 2.0.3 — 2024-08-23
- 2.0.2 — 2024-08-12
- 2.0.1 — 2024-07-01
- 2.0.0 — 2024-04-02
- 1.1.4 — 2024-03-05
- 1.1.3 — 2024-02-08
- 1.1.2 — 2024-01-26
- 1.1.1 — 2024-01-26
- 1.1.0 — 2024-01-23
- … 22 more at https://npm.io/package/@zendeskgarden/container-combobox/versions

## README

# @zendeskgarden/container-combobox [![npm version][npm version badge]][npm version link]

[npm version badge]: https://flat.badgen.net/npm/v/@zendeskgarden/container-combobox
[npm version link]: https://www.npmjs.com/package/@zendeskgarden/container-combobox

This package includes containers relating to Combobox in the
[Garden Design System](https://zendeskgarden.github.io/).

## Installation

```sh
npm install @zendeskgarden/container-combobox
```

## Features

The combobox container encapsulates complexity while supporting a wide variety of
standard features. Core logic and events are backed by Downshift. Standard
naming and behaviors are finessed to suit Garden's point of view.

- single and multiple option selection
- non-editable select-only (similar to a native HTML `<select>`)
- autocomplete (on by default) with user-provided option filtering
- support for trigger as input parent (Garden layout) vs. trigger as input
  sibling (Downshift layout)

## Usage

Check out [storybook](https://zendeskgarden.github.io/react-containers) for live examples.

### useCombobox

```jsx
import { useCombobox } from '@zendeskgarden/container-combobox';

const Combobox = () => {
  const triggerRef = createRef();
  const inputRef = createRef();
  const listboxRef = createRef();
  const options = [
    { value: 'value-1', label: 'One' },
    { value: 'value-2', label: 'Two' },
    { value: 'value-3', label: 'Three' }
  ];
  const {
    getLabelProps,
    getInputProps,
    getTriggerProps,
    getListboxProps,
    getOptionProps,
    isExpanded
  } = useCombobox({
    triggerRef,
    inputRef,
    listboxRef,
    options
  });

  return (
    <>
      <label {...getLabelProps()}>Label</label>
      <input {...getInputProps()} />
      <button {...getTriggerProps()}>&#9660;</button>
      <ul
        {...getListboxProps({ 'aria-label': 'Options' })}
        style={{ visibility: isExpanded ? 'visible' : 'hidden' }}
      >
        {options.map((option, index) => (
          <li key={index} {...getOptionProps({ option })}>
            {option.label}
          </li>
        ))}
      </ul>
    </>
  );
};
```

### ComboboxContainer

```jsx
import { ComboboxContainer } from '@zendeskgarden/container-combobox';

const Combobox = () => {
  const triggerRef = createRef();
  const inputRef = createRef();
  const listboxRef = createRef();
  const options = [
    { value: 'value-1', label: 'One' },
    { value: 'value-2', label: 'Two' },
    { value: 'value-3', label: 'Three' }
  ];

  return (
    <ComboboxContainer
      triggerRef={triggerRef}
      inputRef={inputRef}
      listboxRef={listboxRef}
      options={options}
    >
      {({
        getLabelProps,
        getInputProps,
        getTriggerProps,
        getListboxProps,
        getOptionProps,
        isExpanded
      }) => (
        <>
          <label {...getLabelProps()}>Label</label>
          <input {...getInputProps()} />
          <button {...getTriggerProps()}>&#9660;</button>
          <ul
            {...getListboxProps({ 'aria-label': 'Options' })}
            style={{ visibility: isExpanded ? 'visible' : 'hidden' }}
          >
            {options.map((option, index) => (
              <li key={index} {...getOptionProps({ option })}>
                {option.label}
              </li>
            ))}
          </ul>
        </>
      )}
    </ComboboxContainer>
  );
};
```

---
_Source: https://npm.io/package/@zendeskgarden/container-combobox · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
