Skip to content

Everything you wish the HTML <select> element could do, wrapped up into a lightweight, extensible Vue component.

License

Notifications You must be signed in to change notification settings

RentMagic/vue-select

 
 

Repository files navigation

vue-select Current Release Release Date Bundle Size Monthly Downloads Coverage Status MIT License

Everything you wish the HTML <select> element could do, wrapped up into a lightweight, zero dependency, extensible Vue component.

This package is a modified version of vue-select updated to Vue 3 in its most basic form with minor changes we needed for our project.

Vue Select is a feature-rich select/dropdown/typeahead component. It provides a default template that fits most use cases for a filterable select dropdown. The component is designed to be as lightweight as possible, while maintaining high standards for accessibility, developer experience, and customization.

  • Tagging
  • Filtering / Searching
  • Vuex Support
  • AJAX Support
  • SSR Support
  • Accessible
  • ~20kb Total / ~5kb CSS / ~15kb JS
  • Select Single/Multiple Options
  • Customizable with slots and SCSS variables
  • Zero dependencies

Documentation

Complete documentation and examples available at https://vue-select.org.

Sponsors 🎉

It takes a lot of effort to maintain this project. If it has saved you development time, please consider sponsoring the project with GitHub sponsors!

Huge thanks to the sponsors and contributors that make Vue Select possible!

Get started

Vue 3 only

Install:

yarn add @rentmagic/vue-select

The component itself does not include any CSS. You'll need to include it separately in your Component.vue:

<style>
@import "vue-select/dist/vue-select.css";
</style>

Example usage in a Vue 3 component:

<template>
  <div>
    <v-select :options="['Option 1', 'Option 2', 'Option 3']"></v-select>
  </div>
</template>

<script>
import VueSelect from "@rentmagic/vue-select";

export default {
  components: {
    'v-select': VueSelect
  }
};
</script>

<style>
@import "vue-select/dist/vue-select.css";
</style>

License

MIT

About

Everything you wish the HTML <select> element could do, wrapped up into a lightweight, extensible Vue component.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 62.6%
  • Vue 20.3%
  • CSS 8.3%
  • SCSS 7.7%
  • HTML 1.1%