This component is still under development. Do not use without asking in #confluence-loom-integrations-eng
Usage
Support async filtering, customizable loading feedback, and empty states Note: For optimal UX, it is recommended to avoid using dividers within the options of the Typeahead component.
With typeahead
Loading
Disabled
With error
Props
name
type
default
menuZIndex
number
1100
menuMaxHeight
string | number
34
menuPosition
'left' | 'right' | 'topRight' | 'topLeft'
'left'
options
OptionsObject[] | GroupedOptionsObject[]
required
selectedOptionValue
string | null
required
placeholder
React.ReactNode
isDisabled
boolean
isLoading
boolean
loadingMessage
React.ReactNode
emptyResultsMessage
React.ReactNode
errorMessage
string
container
HTMLElement
ariaMenuName
string
menuMaxWidth
string | number
menuMinWidth
string | number
onInputValueChange
(inputValue: string) => void
onOptionChange
(selectedOption: OptionsObject | null) => void
onOpenChange
(isOpen: boolean) => void
onOuterClick
() => void