Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-search-select

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-search-select

A Vue.js search select form component

  • 3.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

vue-search-select

A Vue.js search select component with NO dependencies.

  • CSS borrowed from https://github.com/Semantic-Org

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

ComponentNameTypeDefaultDescription
ModelSelectoptionsArrayoption list
isErrorBooleanfalseerror style
isDisabledBooleanfalsedisable component
placeholderString''
filterPredicateStringnew RegExp(inputText, 'i')
customAttrFunction() => ''Add custom html attribute
nameStringinput form name attribute
idStringid attribute
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
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
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

Run examples

pnpm run build
pnpm run dev:docs

Keywords

FAQs

Package last updated on 24 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc