Home

Awesome

vue-search-select

A Vue.js search select component with NO dependencies.

Version 3

export files

There are three file.

Components

Version2's BasicSelect, ListSelect components are removed.

Styles

import "vue-search-select/dist/VueSearchSelect.css"

Semantic-ui-css compatible html and css classes used.

If you already use semantic-ui(or fomantic-ui) VueSearchSelect.css import is unnecessary. If you want use vue-search-select without semantic-ui-css, import VueSearchSelect.css.

Release Notes

https://github.com/moreta/vue-search-select/releases

Demo

https://vue-search-select.netlify.com

Usage

Install

npm install --save vue-search-select
yarn add vue-search-select
pnpm add vue-search-select

Props

ComponentNameTypeDefaultDescription
ModelSelectoptionsArrayoption list
isErrorBooleanfalseerror style
isDisabledBooleanfalsedisable component
placeholderString''
filterPredicateStringnew RegExp(inputText, 'i')
customAttrFunction() => ''Add custom html attribute
nameStringinput form name attribute
idStringid attribute
searchchangeEventevent triggered on search change
blurEventevent triggered on input blur
ModelListSelectlistArrayoption list
optionValueStringvalue key
optionTextStringtext key
customTextFunctioncustom text function
optionDisabledStringfalsedisabled key
isErrorBooleanfalseerror style
isDisabledBooleanfalsedisable component
placeholderString''
filterPredicateStringnew RegExp(inputText, 'i')
nameStringinput form name attribute
idStringid attribute
searchchangeEventevent triggered on search change
blurEventevent triggered on input blur
MultiSelectoptionsArrayoption list
selectedOptionsArraydefault option list
isErrorBooleanfalseerror style
isDisabledBooleanfalsedisable component
placeholderString''
filterPredicateStringnew RegExp(inputText, 'i')
customAttrFunction() => ''Add custom html attribute
hideSelectedOptionsBooleanfalseHide Option list that item selected
nameStringinput form name attribute
idStringid attribute
searchchangeEventevent triggered on search change
blurEventevent triggered on input blur
selectEventevent triggered when item selected
MultiListSelectlistArrayoption list
optionValueStringvalue key
optionTextStringtext key
customTextFunctioncustom text function
optionDisabledStringfalsedisabled key
selectedItemsArraydefault option(raw object)
isErrorStringfalseerror style
isDisabledBooleanfalsedisable component
placeholderString''
filterPredicateStringnew RegExp(inputText, 'i')
nameStringinput form name attribute
idStringid attribute
searchchangeEventevent triggered on search change
blurEventevent triggered on input blur
selectEventevent triggered when item selected

Run examples

pnpm run build
pnpm run dev:docs