npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

smart-select-diba

v1.0.14

Published

کامپوننت Smart Select برای Vue 2، Vue 3 و Nuxt

Readme

smart-select-diba

A Vue.js smart select dropdown component with built-in search functionality, supporting Vue 2, Vue 3, and Nuxt.
Fully customizable and lightweight.


Features

  • Works with Vue 2 and Vue 3
  • Searchable dropdown options
  • Clear selected option functionality
  • Fully customizable labels and placeholders
  • Compatible with SSR (Nuxt.js support)
  • No external CSS dependencies (styled scoped in component)

Installation

npm install smart-select-diba
# or
yarn add smart-select-diba

 Usage Vue 3
<template>
  <SmartSelectVue3
    :options="options"
    :valueDefault="defaultOption"
    @selected="onSelected"
    @remove="onRemove"
  />
</template>

<script setup>
import { ref } from 'vue'
import SmartSelectVue3 from 'smart-select-diba/vue3'
or
mport SmartSelect from 'smart-select-diba/src/vue3/SmartSelect.vue'
import 'smart-select-diba/dist/smart-select-diba.css'

const options = ref([
  { title: 'Option 1', id: 1 },
  { title: 'Option 2', id: 2 },
  // ...
])

const defaultOption = ref(null)

function onSelected(item) {
  console.log('Selected:', item)
}

function onRemove() {
  console.log('Selection cleared')
}
</script>

Usage Vue 2
<template>
  <smart-select-vue2
    :options="options"
    :value-default="defaultOption"
    @selected="onSelected"
    @remove="onRemove"
  />
</template>

<script>
import SmartSelectVue2 from 'smart-select-diba/vue2'
or
import SmartSelect from 'smart-select-diba/src/vue2/SmartSelect.vue'

import 'smart-select-diba/dist/smart-select-diba.css'

export default {
  components: {
    SmartSelectVue2,
  },
  data() {
    return {
      options: [
        { title: 'Option 1', id: 1 },
        { title: 'Option 2', id: 2 },
        // ...
      ],
      defaultOption: null,
    }
  },
  methods: {
    onSelected(item) {
      console.log('Selected:', item)
    },
    onRemove() {
      console.log('Selection cleared')
    },
  },
}
</script>
Props
| Prop Name      | Type   | Default                     | Description                                                 |
| -------------- | ------ | --------------------------- | ----------------------------------------------------------- |
| `options`      | Array  | `[]`                        | The list of options available for selection.                |
| `keyLabel`     | String | `'title'`                   | The key used to display the label of each option.           |
| `label`        | String | `'Please select an option'` | Placeholder text shown in the main input field.             |
| `labelSearch`  | String | `'Search...'`               | Placeholder text shown in the search input inside dropdown. |
| `labelNoItems` | String | `'No items to display'`     | Message shown when no options match the search query.       |
| `valueDefault` | Object | `null`                      | The initially selected option (default value).              |

Events
| Event Name | Parameters       | Description                                  |
| ---------- | ---------------- | -------------------------------------------- |
| `selected` | `(item: Object)` | Emitted when the user selects an option.     |
| `remove`   | `()`             | Emitted when the selected option is cleared. |