Skip to Content
SmartUI

Combobox

Text input that filters a list of options as the user types.

Usage

import { Combobox } from '@smartui/react';
import '@smartui/react/styles.css';

When to use

  • Long lists where the user knows what they want.

When not to use

  • Fewer than ten options. Use Select.

Props

PropTypeDefaultDescription
items{ key, label }[]required
labelstring-Always visible above the control.
helperTextstring-Help text below the control.
errorMessagestring-Shown when isInvalid; replaces the helper text.
variant'raised' | 'flat''raised'Raised on the canvas, flat inside a white card.
size'sm' | 'md' | 'lg''md'md on desktop, lg on touch.
isInvalid, isDisabled, isRequiredbooleanfalse
allowsCustomValuebooleanfalse

Accessibility

  • The number of results is announced as the list changes.

On this page