Components/SearchSelect
Universal Component

SearchSelect

Select

This page was migrated by AI, please review carefully

Migration is complete, but please validate against source code and manual review.

SearchSelect

Select

The dropdown layer is now unified on the TxPopover → TxTooltip → TxBaseAnchor chain for consistent overlay behavior.

Basic Usage

SearchSelect

Demo loads on client.

When remote=true, input changes (debounced) and Enter trigger the search event; fetch externally and write results back to options.

SearchSelect (remote)

Demo loads on client.

Notes

  • Local mode filters by options.label and shows all when input is empty.
  • Remote mode requires updating options in the search event; results are not cached.
  • Closing the dropdown keeps input and panel state; reopening does not auto-reset.

API

Props

PropTypeDefaultDescription
modelValuestring | number''TextValue(v-model)
placeholderstring'Search'Description for placeholder.
disabledbooleanfalseDescription for disabled.
clearablebooleantrueDescription for clearable.
optionsTxSearchSelectOption[][]Description for options.
loadingbooleanfalseDescription for loading.
remotebooleanfalseDescription for remote.
searchDebouncenumber200Description for searchDebounce.
dropdownMaxHeightnumber280Description for dropdownMaxHeight.
dropdownOffsetnumber6Description for dropdownOffset.
panelVariant'solid' | 'dashed' | 'plain''solid'Text(TxCard variant)
panelBackground'pure' | 'mask' | 'blur' | 'glass' | 'refraction''refraction'Card background style
panelShadow'none' | 'soft' | 'medium''soft'Text(TxCard shadow)
panelRadiusnumber18Description for panelRadius.
panelPaddingnumber6Description for panelPadding.

Events

EventParamsDescription
update:modelValue(v: string | number)v-model Text
change(v: string | number)Description for change.
search(q: string)Description for search.
select(opt: TxSearchSelectOption)Description for select.
open-Description for open.
close-Description for close.

Types

EXAMPLE.TS
export interface TxSearchSelectOption {
  value: string | number
  label: string
  disabled?: boolean
}
Was this helpful?