Skip to content
THE COMPONENT LIBRARY
Skip to content

Component reference

Combobox

Search and choose an assignee from named options.

Preview

Live preview

Changes apply to this preview only.

Width adapts to the available space

More examples

Different configurations and compositions using the real Pimolu API. Each preview runs independently and follows the site appearance.

Sizes

From xs to xxl.

Open preview

Variants

The semantic tone of the field.

Open preview

Appearances

Outline, soft, filled and glass.

Open preview

Usage

Keep option values stable when labels change; filter according to the component's supported contract.

API reference

Generated from the public TypeScript declarations. Native HTML attributes are inherited where the component extends them; this reference includes Pimolu props and selected common native attributes.

PimoluComboboxOption

Type source
PimoluComboboxOption public API
NameTypeDefaultDescription
valueRequiredstring—Public Pimolu prop; see the source declaration for details.
labelRequiredstring—Visible label associated with the control.
disabledboolean | undefinedfalsePublic Pimolu prop; see the source declaration for details.
keywordsreadonly string[] | undefined—Public Pimolu prop; see the source declaration for details.
valueRequired

string

No default extracted.

Public Pimolu prop; see the source declaration for details.

labelRequired

string

No default extracted.

Visible label associated with the control.

disabled

boolean | undefined

Default: false

Public Pimolu prop; see the source declaration for details.

keywords

readonly string[] | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

PimoluComboboxProps

Type source
PimoluComboboxProps public API
NameTypeDefaultDescription
idstring | undefined—Public Pimolu prop; see the source declaration for details.
namestring | undefined—Public Pimolu prop; see the source declaration for details.
formstring | undefined—Public Pimolu prop; see the source declaration for details.
optionsRequiredreadonly PimoluComboboxOption[]—Public Pimolu prop; see the source declaration for details.
valuestring | undefined—Public Pimolu prop; see the source declaration for details.
defaultValuestring | undefined""Public Pimolu prop; see the source declaration for details.
onValueChange((value: string) => void) | undefined—Public Pimolu prop; see the source declaration for details.
onQueryChange((query: string) => void) | undefined—Public Pimolu prop; see the source declaration for details.
labelstring | undefined—Visible label associated with the control.
placeholderstring | undefined"Search..."Public Pimolu prop; see the source declaration for details.
helperTextstring | undefined—Supporting text below the field.
errorMessagestring | undefined—Error feedback replacing helper text and marking the field invalid.
emptyMessagestring | undefined"No results found."Public Pimolu prop; see the source declaration for details.
requiredMessagestring | undefined"Please select an option."Public Pimolu prop; see the source declaration for details.
size"xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined"md"Component size.
variant"primary" | "secondary" | "neutral" | "success" | "warning" | "danger" | undefined"neutral"Variant exposed by this component.
appearance"soft" | "outline" | "glass" | "filled" | undefined"outline"Visual treatment of the control or surface.
disabledboolean | undefinedfalsePublic Pimolu prop; see the source declaration for details.
requiredboolean | undefinedfalsePublic Pimolu prop; see the source declaration for details.
invalidboolean | undefinedfalseExplicit invalid state.
clearableboolean | undefinedfalsePublic Pimolu prop; see the source declaration for details.
fullWidthboolean | undefinedfalseUse the available width of the parent.
classNamestring | undefined—Public Pimolu prop; see the source declaration for details.
inputClassNamestring | undefined—Public Pimolu prop; see the source declaration for details.
styleCSSProperties | undefined—Public Pimolu prop; see the source declaration for details.
aria-labelstring | undefined—Public Pimolu prop; see the source declaration for details.
aria-labelledbystring | undefined—Public Pimolu prop; see the source declaration for details.
aria-describedbystring | undefined—Public Pimolu prop; see the source declaration for details.
id

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

name

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

form

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

optionsRequired

readonly PimoluComboboxOption[]

No default extracted.

Public Pimolu prop; see the source declaration for details.

value

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

defaultValue

string | undefined

Default: ""

Public Pimolu prop; see the source declaration for details.

onValueChange

((value: string) => void) | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

onQueryChange

((query: string) => void) | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

label

string | undefined

No default extracted.

Visible label associated with the control.

placeholder

string | undefined

Default: "Search..."

Public Pimolu prop; see the source declaration for details.

helperText

string | undefined

No default extracted.

Supporting text below the field.

errorMessage

string | undefined

No default extracted.

Error feedback replacing helper text and marking the field invalid.

emptyMessage

string | undefined

Default: "No results found."

Public Pimolu prop; see the source declaration for details.

requiredMessage

string | undefined

Default: "Please select an option."

Public Pimolu prop; see the source declaration for details.

size

"xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined

Default: "md"

Component size.

variant

"primary" | "secondary" | "neutral" | "success" | "warning" | "danger" | undefined

Default: "neutral"

Variant exposed by this component.

appearance

"soft" | "outline" | "glass" | "filled" | undefined

Default: "outline"

Visual treatment of the control or surface.

disabled

boolean | undefined

Default: false

Public Pimolu prop; see the source declaration for details.

required

boolean | undefined

Default: false

Public Pimolu prop; see the source declaration for details.

invalid

boolean | undefined

Default: false

Explicit invalid state.

clearable

boolean | undefined

Default: false

Public Pimolu prop; see the source declaration for details.

fullWidth

boolean | undefined

Default: false

Use the available width of the parent.

className

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

inputClassName

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

style

CSSProperties | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

aria-label

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

aria-labelledby

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

aria-describedby

string | undefined

No default extracted.

Public Pimolu prop; see the source declaration for details.

Accessibility

  • Name the input and test arrows, Enter, Escape and an empty search result.
Read the accessibility guide →