Vivid API

Combobox

Combobox contains a free text input for filtering options along with a similar behavior to a Select.

Labelling

Label Text

The label attribute provides a short description of the purpose of the Combobox.

If a visible label can’t be used, provide one using the

aria-label

attribute. This ensures screen readers announce the purpose of the element, making it accessible to all users.

Helper Text

The helper-text attribute provides additional information about the purpose of the Combobox.

To add HTML to the helper text, use the helper-text slot.

Placeholder Text

The placeholder attribute provides some text to be displayed when no option has been Combobox.

Avoid using placeholder text as a substitute for a label. Placeholder text is not a reliable label—it disappears when users type and is not always announced by screen readers. Use a label element to ensure the Combobox is both visually and programmatically associated with a descriptive label.

Contextual Help

You can add the Contextual Help component using the contextual-help slot. It will be displayed next to the label, providing users additional information.

Validation Feedback

Success Text

The success-text attribute provides a custom success message. Any current error state will be overridden by success-text.

Error Text

The error-text attribute provides a custom error message. Any current error state will be overridden by error-text.

Icon

Use the icon slot to add an icon from the icon library.

Scale

The scale attribute controls the combobox element display size. Use condensed in situations when space is limited, for example, inside a Data Grid cell.

The reason for using scale for form elements and not size (as used in other components such as Button), is that size is a HTML attribute that can be used on input elements (and also Text Field) to control the width of the input.

Shape

The shape attribute controls the border radius of the Combobox input element.

Appearance

The appearance attribute controls the style of the Combobox element.
Use ghost in combination with a containing element which provides a border, for example when used inside the leading action items slot of Text Field.

Placement

Set the placement attribute to set the combobox’s placement in accordance to its anchor.
Placement options are: top-start , top , top-end , bottom-start (default) , bottom and bottom-end.

Disabled

The disabled attribute disables the Combobox element.