Skip to content
Inputs & Forms

Combobox

client79.75 kB
@stellaria/nebula-webComboboxProps

Preview

Props

29
PropTypeDefault

allowsCustomValue

booleanfalse

className

string

clearLabel

string

data

required
readonly SelectOption[]

defaultValue

string""

description

ReactNode

disabled

booleanfalse

emptyLabel

string

error

string | boolean

errorDisplay

ErrorDisplay"tooltip"

field

NebulaField<string>

inputValue

string

label

ReactNode

maxDropdownHeight

number

menuTrigger

ComboboxMenuTrigger"input"

name

string

onChange

((value: string) => void)

onInputChange

((value: string) => void)

optionHeight

number

placeholder

string

placement

PopoverPlacement"bottom start"

renderOption

RenderOption

required

booleanfalse

rootClassName

string

size

Size"md"

surface

FieldSurface"outline"

toggleLabel

string"Show options"

value

string

virtualizeFrom

number

Slot props

6

Each one spreads over an inner element, so you can restyle a region without forking the component.

PropTypeDefault

bodyProps

Wrapper for the control.

BoxSlotProps

descriptionProps

Help text below the label. Only rendered with `description`.

TextSlotProps

errorProps

Configures the `FieldError`. With `errorDisplay="tooltip"` it spreads whole; with `"text"` there is no `FieldError` to configure — it is a `Text` with `role="alert"` — and only `className` is honoured.

Omit<FieldErrorProps, "children">

headerProps

The label and description row. Not rendered when the field has neither.

BoxSlotProps

labelProps

The field label. It lands on the `<label>`, which already carries the control `htmlFor`.

TextSlotProps

requiredProps

The required asterisk, which lives inside the label. Only rendered with `required`.

BoxSlotProps

Also accepts

On top of its own props, this component forwards these groups.

Style props · 127