# dropdown-vue-next

> An easier way to display A Vue.js dropdown component

Latest version **1.0.1** (published 2022-01-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install dropdown-vue-next
pnpm add dropdown-vue-next
yarn add dropdown-vue-next
bun add dropdown-vue-next
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-01-14 |
| First published | 2022-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mhammed Talhaouy |
| Maintainers | tal7aouy |
| Keywords | vue, dropdown, vue-dropdown, vue-dropdowns |

## Links

- npm: https://www.npmjs.com/package/dropdown-vue-next
- Repository: https://github.com/tal7aouy/dropdown-vue-next
- Homepage: https://github.com/tal7aouy/dropdown-vue-next#readme
- Issues: https://github.com/tal7aouy/dropdown-vue-next/issues
- npm.io page: https://npm.io/package/dropdown-vue-next

## Recent versions

- 1.0.1 (latest) — 2022-01-14
- 1.0.0 — 2022-01-05

## README

# dropdown-vue

An easier way to display A Vue.js dropdown component,
No special dependencies, no jquery, no tailwind.css, just VueJS and CSS magic.

# Installation

```bash
$ npm install dropdown-vue-next
// OR
$ yarn add  dropdown-vue-next
```

# Requirements

- [Vue.js](https://github.com/vuejs/vue-next) `^3.0.0`

# Usage

```html
<Dropdown
  :options="arrayOfObjects"
  :selected="object"
  @updateOption="onSelectedOption"
  :placeholder="'Select your Option'"
  :closeOnOutsideClick="boolean"
>
</Dropdown>

<script setup>
  import Dropdown from 'dropdown-vue-next'
  import {reactive, ref} from 'vue
  const countries = ref([
      {id:1, name:'Morocco'},
      {id:2, name:'USA'},
      {id:3,name: "Canada"}
    ])
  let object = reactive({name: "Object Name"})

  const onSelectedOption = (payload) => object = payload
</script>
```

# Default values of props

| Property            |  Type   |       Default value |
| ------------------- | :-----: | ------------------: |
| closeOnOutsideClick | boolean |                true |
| placeholder         | string  | 'Select an option.' |

# License

[The MIT License](http://opensource.org/licenses/MIT)

---
_Source: https://npm.io/package/dropdown-vue-next · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
