• Stars
    star
    244
  • Rank 165,885 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Select with autocomplete, slots, bootstrap and material design themes.

Coverage Downloads Version License CircleCI Build Status Language grade: JavaScript codebeat badge codebeat badge Downloads Contributors

The current version is 3.x, if you are looking for 2.x, you can find it here (also, see breaking changes).

Flexible select Tweet

Demo + Documentation

Features

  • no dependencies

  • props (30) allow you to customize a component in a various ways

  • slots (13) allow content to be changed anywhere

  • events (8) will let you know about everything

  • autocomplete (you can use custom search, you can also disable the search input)

  • keyboard controls (not only through the arrows)

  • support on mobile devices

  • validation, state of error and success

  • disabled and readonly

  • small and large sizes (as in bootstrap)

  • the ability to set your styles, you can write theme from scratch. 2 themes: Bootstrap 4 (equal styles), Material Design

  • TypeScript support

  • tab navigation

  • SSR (Server-Side Rendering)

  • auto determine the suitable position for the menu if it goes beyond the viewport

Write your suggestions, glad to add.

Installation

yarn add vue-cool-select or npm install --save vue-cool-select

Get started

NPM

  1. Import this plugin, css (theme) and add plugin via Vue.use:
import { CoolSelectPlugin } from 'vue-cool-select'

// paste the line below only if you need "bootstrap" theme
import 'vue-cool-select/dist/themes/bootstrap.css'
// paste the line below only if you need "material-design" theme
import 'vue-cool-select/dist/themes/material-design.css'
// you can also import your theme

Vue.use(CoolSelectPlugin)
  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"
/>

Browser (CDN)

Include vue-cool-select in the page.

<script src="https://unpkg.com/vue-cool-select"></script>

<!-- paste the line below only if you need "bootstrap" theme -->
<link rel="stylesheet" href="https://unpkg.com/vue-cool-select/dist/themes/bootstrap.css">
<!-- paste the line below only if you need "material-design" theme -->
<link rel="stylesheet" href="https://unpkg.com/vue-cool-select/dist/themes/material-design.css">

If Vue is detected in the Page, the plugin is installed automatically.


Documentation and examples here.

TODO

  • multi-select
  • 100% tests coverage

I am happy to add something or improve, you can write what you want to see. I also have more motivation to work if you give a star, thanks! ๐Ÿ˜„

More Repositories

1

tiptap-vuetify

Vuetify editor. Component simplifies integration tiptap editor with vuetify.
TypeScript
806
star
2

laravel5.7-vue-cli3-boilerplate

Boilerplate / Starter kit. Laravel 5.7, Vue CLI 3 โ€” Authentication with Email Verification. REST API.
PHP
54
star
3

blog-frontend

Frontend of blog created using: GraphQL (Apollo) + Vue + Nuxt.js + TypeScript + Vuetify...
Vue
44
star
4

tiptap-vuetify-nuxt

Integration tiptap-vuetify (editor) with Nuxt.
JavaScript
28
star
5

laravel-nuxt

Advanced authentication using Laravel 5.6 + Nuxt 1.4 (SSR, Socialite)
Vue
19
star
6

flutter_social_network

Social network built on flutter
Dart
11
star
7

flutter_state_managers_comparison

Flutter state managers comparison based on todos example
Dart
7
star
8

phaser3-snake-cordova

Phaser 3 + Cordova + TypeScript: The Snake Game.
TypeScript
7
star
9

tiptap-vuetify-demo

Demo for tiptap-vuetify package.
Vue
7
star
10

symfony-var-dumper-browser

Symfony's Var-Dump Server (server:dump) with live display of information in the Browser (without hot reloading) and with added functionality.
TypeScript
6
star
11

blog-backend

Blog created using: Laravel 5.7 + GraphQL
PHP
6
star
12

vue-electron-images-uploader

Electron โ€” Upload files from explorer or screenshots to imgur.com
Vue
5
star
13

vue-plugin-axios

Powerful vue plugin for axios. There is support for Nuxt.js
JavaScript
5
star
14

freeCodeCamp-challenges-manager

Challenge-manager tool for freeCodeCamp. It allows you to create or edit existing Challenges through a convenient form (more convenient than editing a file on a Github).
Vue
5
star
15

skills

My skills
JavaScript
3
star
16

vue-cli-laravel-todo

Vue CLI 3 + Laravel 5.6 Example TODO project.
PHP
3
star
17

blog-laravel

Blog created using: Laravel 5.7 + GraphQL + Vue + Nuxt.js + Vuetify + TypeScript...
PHP
2
star
18

keyboard-speed-trainer

Train keyboard speed in a convenient UI. Random text from Wikipedia. Multilang. Many settings.
Vue
2
star
19

happy-birthday

Happy birthday static site on Vue 3
Vue
2
star
20

phaser3-typescript-boilerplate

Starter for Phaser 3 game with TypeScript (everything is set up).
TypeScript
2
star
21

tailwindcss-vue

The package makes it easy to use the Tailwind CSS with Vue.
TypeScript
2
star
22

all-world-flags

๐Ÿณ๏ธ Flags โ€” ISO 3166-1 alpha-3 format (3 letters). SVG format. All world flags.
2
star
23

flutter_github_search

Flutter Github Search Example.
Dart
2
star
24

awesome-vue3

๐ŸŽ‰ A curated list of awesome things related to Vue.js 3 composition API.
1
star
25

vue3-awesome-composition

๐ŸŽ‰ A curated list of awesome things related to Vue.js 3 composition API.
1
star
26

phaser3-swipe-plugin

Mobile swipe plugin for Phaser 3.
TypeScript
1
star
27

blog-symfony

Symfony 4 GeekHub Blog
PHP
1
star
28

iliyaZelenko

I found a secret!
1
star
29

browser-extension-faceit-csgo

Search for a player by nickname (faceit.com), extended statistics on elo and other player statistics
Vue
1
star
30

typescript-node-simple-boilerplate

TypeScript, Node.js, simple but powerful Boilerplate.
TypeScript
1
star
31

symfony-cli-make

TypeScript
1
star
32

my_skills

Skills circular diagram using d3.js and Vite
JavaScript
1
star