MCPcopy Index your code
hub / github.com/777genius/vue-cool-select

github.com/777genius/vue-cool-select @v3.5.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.5.2 ↗ · + Follow
50 symbols 101 edges 30 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<a href="https://codecov.io/gh/iliyaZelenko/vue-cool-select">
  <img src="https://img.shields.io/codecov/c/github/iliyaZelenko/vue-cool-select.svg" alt="Coverage">
</a>
<a href="https://www.npmjs.com/package/vue-cool-select">
  <img src="https://img.shields.io/npm/dm/vue-cool-select.svg" alt="Downloads">
</a>
<a href="https://www.npmjs.com/package/vue-cool-select">
  <img src="https://img.shields.io/npm/v/vue-cool-select.svg" alt="Version">
</a>
<a href="https://www.npmjs.com/package/vue-cool-select">
  <img src="https://img.shields.io/npm/l/vue-cool-select.svg" alt="License">
</a>
<a href="https://circleci.com/gh/iliyaZelenko/vue-cool-select">
  <img src="https://circleci.com/gh/iliyaZelenko/vue-cool-select.svg?style=shield" alt="CircleCI Build Status">
</a>
<a href="https://lgtm.com/projects/g/iliyaZelenko/vue-cool-select/context:javascript">
  <img alt="Language grade: JavaScript" src="https://img.shields.io/lgtm/grade/javascript/g/iliyaZelenko/vue-cool-select.svg?logo=lgtm&logoWidth=18" />
</a>
<a href="https://codebeat.co/projects/github-com-iliyazelenko-vue-cool-select-master">
  <img alt="codebeat badge" src="https://codebeat.co/badges/a6d9cfc8-529e-48c7-ae04-7d69fe6b1239" />
</a>
<a href="https://standardjs.com/">
  <img alt="codebeat badge" src="https://badgen.net/badge/code%20style/standard/f2a" />
</a>

Flexible select Tweet

Features

  • 2 themes: Bootstrap 4 (equal styles), Material Design
  • autocomplete (you can use custom search)
  • keyboard controls (not only through the arrows)
  • slots (13) allow content to be changed anywhere
  • events (7) will let you know about everything
  • props (24) allow you to customize a component in a variety of ways
  • loading indicator (helpful for REST requests)
  • validation, state of error and success
  • support on mobile devices
  • disabled and readonly
  • smile and large sizes (as in bootstrap)
  • ability to set styles for a component
  • TypeScript support

Write your suggestions, glad to add.

Installation

yarn add vue-cool-select@^2.0.0 or npm install --save vue-cool-select@^2.0.0

Get started

  1. Import and select a theme:
import VueSelect from 'vue-cool-select'

Vue.use(VueSelect, {
  theme: 'bootstrap' // or 'material-design'
})
  1. Use inside another component:
import { CoolSelect } from 'vue-cool-select'

export default {
  components: { CoolSelect },
  data () {
    return {
      // simple example of items
      items: ['Item 1', 'Item 2', 'Item 3'],
      // there will be a selected item
      selected: null
    }
  }
}
  1. Add to <template>:
<cool-select
  v-model="selected"
  :items="items"
/>

Documentation and examples here.

Extension points exported contracts — how you extend this code

CoolSelectUseOptionsInterface (Interface)
(no doc)
types/types.d.ts
Vue (Interface)
(no doc)
types/types-libraries.d.ts
VueCoolSelectComponentInterface (Interface)
(no doc)
types/types.d.ts

Core symbols most depended-on inside this repo

isObject
called by 7
src/helpers.js
createLocalVueWithPlugin
called by 6
tests/unit/helpers.js
onEnter
called by 5
types/types.d.ts
onSearchKeyDown
called by 4
types/types.d.ts
scrollIfNeeded
called by 4
src/helpers.js
mergeDeep
called by 4
src/helpers.js
onSelectByArrow
called by 3
types/types.d.ts
onClick
called by 3
types/types.d.ts

Shape

Function 38
Method 9
Interface 3

Languages

TypeScript100%

Modules by API surface

types/types.d.ts11 symbols
src/computed.js9 symbols
src/eventsListeners.js8 symbols
src/helpers.js5 symbols
src/eventEmitter.js4 symbols
tests/unit/eventsListeners.spec.ts3 symbols
tests/unit/helpers.js2 symbols
src/main.js2 symbols
gh-pages-src/themeHelpers.js2 symbols
types/types-libraries.d.ts1 symbols
tests/unit/component.spec.js1 symbols
src/props.js1 symbols

For agents

$ claude mcp add vue-cool-select \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page