UI LibraryUI Library
Guide
Components
Styling
Repo
Guide
Components
Styling
Repo
  • Guide

    • Introduction
    • Getting Started
  • Components

    • CataUiAccordion
    • CataUiAccordionItem
    • CataUiAlert
    • CataUiAnchorMenu
    • CataUiBadge
    • CataUiButton
    • CataUiCollapse
    • CataUiDraggable
    • CataUiDropdown
    • CataUiDropover
    • CataUiFileTree
    • CataUiIcon
    • CataUiIconSwitch
    • CataUiInput
    • CataUiInputCheckbox
    • CataUiInputColor
    • CataUiInputDate
    • CataUiInputGroup
    • CataUiInputRadio
    • CataUiInputSearch
    • CataUiInputSelect
    • CataUiMasonry
    • CataUiMasonryTile
    • CataUiLogo
    • CataUiModal
    • CataUiPaginate
    • CataUiProgress
    • CataUiSpinner
    • CataUiStatusLabel
    • CataUiSwitch
    • CataUiTable
    • CataUiTableAG
    • CataUiTableFooter
    • CataUiTabs
    • CataUiTabSwitch
    • CataUiTooltip
  • Styling

    • Colors
    • Icons
    • Typography
    • Utils

CataUiInputSearch

A searchable input component that displays filtered options based on user input. This component combines the functionality of a text input with dropdown selection, allowing users to either type their value or select from a list of options.

Basic Search
Search input
Selected value: None
With Minimum Characters (2) Required
Search with min chars
With Icon and Loading State
Search with loading state
<CataUiInputSearch 
  label="Search input"
  :options="options" 
  :minCharRequired="2"
  tooltip="Start typing to search" 
  v-model="myValue" />

Props

PropDescriptionTypeDefaultRequiredOptions
errorDisplays an error message below the inputStringfalse
iconIcon to display within the input fieldStringfalse
iconAlignmentSets the alignment of the iconString'left'false'left', 'right'
labelThe text label displayed above the inputStringfalse
loadingShows a loading spinner and disables inputBooleanfalsefalse
minCharRequiredMinimum characters required to initiate searchNumber0false
optionsArray of selectable options to filterArraytrue
requiredDisplays a required indicator (*) next to the labelBooleanfalsefalse
tooltipTooltip text to display additional informationStringfalse

Model Value

PropertyDescriptionTypeRequired
v-modelSelected/typed value in the inputStringtrue

Events

EventDescriptionParameters
update:modelValueEmitted when the selected value changes(value: String) New value

Examples

Basic Usage

<CataUiInputSearch 
  label="Search input" 
  :options="options" 
  v-model="myValue" />

With Minimum Character Requirement

<CataUiInputSearch 
  label="Search input" 
  :options="options" 
  :minCharRequired="2"
  v-model="myValue" />

With Loading State and Icon

<CataUiInputSearch 
  label="Search input" 
  :options="options" 
  icon="search"
  :loading="isLoading" 
  v-model="myValue" />

Data structure

const myValue = ref('');
const isLoading = ref(false);
const options = ['Brief', 'Analytics', 'Toolbox', 'Visualize'];
Prev
CataUiInputRadio
Next
CataUiInputSelect