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

selectix

v2.0.1

Published

Searchable select component for Vue 3 with Tailwind CSS

Readme

Selectix

Searchable select component for Vue 3 with Tailwind CSS.

Features

  • Single and multiple select
  • Search / filter with autofocus
  • Keyboard navigation (↑↓ arrows, Enter to select, Escape to close)
  • Optgroups
  • Disabled options
  • Placeholder text
  • Optional deselect (single select)
  • Max selected options (multiple)
  • Custom width, RTL support

Install

yarn add selectix

Peer dependencies: Vue 3 and Tailwind CSS 4 (or 3). Your project must use Tailwind so the component's styles are applied.

Usage

1. Import the CSS

In your app entry (e.g. main.js or App.vue):

import 'selectix/style.css'

2. Use the component

Option A – Single component

<script setup>
import { Selectix } from 'selectix'
import 'selectix/style.css'

const selected = ref('')
const options = [
  { value: 'a', label: 'Option A' },
  { value: 'b', label: 'Option B' },
]
</script>

<template>
  <Selectix
    v-model="selected"
    :options="options"
    placeholder="Choose..."
  />
</template>

Option B – Global registration

import { createApp } from 'vue'
import { Selectix, install } from 'selectix'
import 'selectix/style.css'
import App from './App.vue'

const app = createApp(App)
app.use(install) // registers <Selectix> globally
app.mount('#app')

Then use <Selectix> in any template.

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | modelValue | String \| Number \| Array | null | Selected value(s) | | options | Array | required | [{ value, label, disabled? }] or [{ label, options: [...] }] for groups | | placeholder | String | "Select an Option" | Single select placeholder | | placeholderMultiple | String | "Select Some Options" | Multiple select placeholder | | multiple | Boolean | false | Allow multiple selection | | searchable | Boolean | true | Show search input | | disableSearchThreshold | Number | 0 | Hide search when option count ≤ this (single only) | | noResultsText | String | "No results match" | Text when search has no results | | allowDeselect | Boolean | false | Show deselect control (single) | | maxSelectedOptions | Number | Infinity | Max selections (multiple) | | width | String | "" | e.g. "95%" | | rtl | Boolean | false | Right-to-left |

Events

  • update:modelValue – when selection changes (for v-model)
  • change – when selection changes

Tailwind

The component uses Tailwind utility classes. With Tailwind 4 and the Vite plugin, your app will pick them up from node_modules/selectix if needed. With Tailwind 3, add the package to content in tailwind.config.js:

content: [
  './index.html',
  './src/**/*.{vue,js,ts,jsx,tsx}',
  './node_modules/selectix/**/*.{vue,js}',
],

Demo / GitHub Pages

The demo is deployed via GitHub Actions. In the repo Settings → Pages → Build and deployment, set Source to GitHub Actions. The site will be at https://<username>.github.io/selectix/ (replace <username> with your GitHub username).

Development

yarn install
yarn dev          # demo app at http://localhost:5173
yarn build        # build library to dist/
yarn build:demo   # build demo app to demo/
yarn preview      # serve built demo (run build:demo first)

License

MIT. See LICENSE.md.