vue-search-select
TypeScript icon, indicating that this package has built-in type declarations

3.2.0 • Public • Published

vue-search-select

A Vue.js search select component with NO dependencies.

Version 3

  • Support Vue.js 3.x

export files

There are three file.

  • VueSearchSelect.js
  • VueSearchSelect.umd.js
  • VueSearchSelect.css

Components

  • ModelSelect (from v2.3.8)
    • value set through v-model
    • value can be string, number, boolean and object
      • If you v-model type is string, onInput set by string. (Not option object)
  • ModelListSelect (from v2.3.8)
    • value set through v-model
    • Can pass custom list and customize display text to Component
    • Wrap ModelSelect component
  • MultiSelect
    • search select for multiple select
  • MultiListSelect
    • ListSelect for MultiSelect

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

Component Name Type Default Description
ModelSelect options Array option list
isError Boolean false error style
isDisabled Boolean false disable component
placeholder String ''
filterPredicate String new RegExp(inputText, 'i')
customAttr Function () => '' Add custom html attribute
name String input form name attribute
id String id attribute
ModelListSelect list Array option list
optionValue String value key
optionText String text key
customText Function custom text function
optionDisabled String false disabled key
isError Boolean false error style
isDisabled Boolean false disable component
placeholder String ''
filterPredicate String new RegExp(inputText, 'i')
name String input form name attribute
id String id attribute
MultiSelect options Array option list
selectedOptions Array default option list
isError Boolean false error style
isDisabled Boolean false disable component
placeholder String ''
filterPredicate String new RegExp(inputText, 'i')
customAttr Function () => '' Add custom html attribute
hideSelectedOptions Boolean false Hide Option list that item selected
name String input form name attribute
id String id attribute
MultiListSelect list Array option list
optionValue String value key
optionText String text key
customText Function custom text function
optionDisabled String false disabled key
selectedItems Array default option(raw object)
isError String false error style
isDisabled Boolean false disable component
placeholder String ''
filterPredicate String new RegExp(inputText, 'i')
name String input form name attribute
id String id attribute

Run examples

pnpm run build
pnpm run dev:docs

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.2.02,688latest
2.3.8-alpha.00beta
3.0.13alpha

Version History

VersionDownloads (Last 7 Days)Published
3.2.02,688
3.1.272
3.1.12
3.1.0155
3.0.81
3.0.74
3.0.63
3.0.53
3.0.43
3.0.33
3.0.21
3.0.13
2.9.62,748
2.9.5978
2.9.41
2.9.3983
2.9.21
2.9.2-alpha.381
2.9.2-alpha.20
2.9.2-alpha.12
2.9.139
2.9.1-alpha.91
2.9.1-alpha.80
2.9.1-alpha.70
2.9.1-alpha.60
2.9.1-alpha.50
2.9.1-alpha.40
2.9.1-alpha.30
2.9.1-alpha.20
2.9.1-alpha.10
2.9.00
2.8.3415
2.8.211
2.8.16
2.8.03
2.7.11
2.7.039
2.6.30
2.6.3-alpha.10
2.6.20
2.6.163
2.6.00
2.5.011
2.4.00
2.3.120
2.3.1112
2.3.100
2.3.97
2.3.80
2.3.8-alpha.10
2.3.8-alpha.00
2.3.70
2.3.60
2.3.50
2.3.40
2.3.30
2.3.20
2.3.10
2.3.01
2.0.20
2.0.10
2.0.00
1.2.10
1.2.00
1.1.60
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i vue-search-select

Weekly Downloads

8,341

Version

3.2.0

License

MIT

Unpacked Size

68 kB

Total Files

10

Last publish

Collaborators

  • moreta