PHPackages                             mrshanebarron/select - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mrshanebarron/select

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mrshanebarron/select
====================

Select dropdown component for Laravel - supports Livewire and Vue

v1.0.1(5mo ago)08MITVuePHP ^8.1

Since Dec 14Pushed 4mo agoCompare

[ Source](https://github.com/mrshanebarron/select)[ Packagist](https://packagist.org/packages/mrshanebarron/select)[ RSS](/packages/mrshanebarron-select/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Select
======

[](#select)

A custom select dropdown component for Laravel applications. Supports search, multi-select, and custom styling. Works with Livewire and Vue 3.

Installation
------------

[](#installation)

```
composer require mrshanebarron/select
```

Livewire Usage
--------------

[](#livewire-usage)

### Basic Usage

[](#basic-usage)

```

```

### With Placeholder

[](#with-placeholder)

```

```

### Searchable

[](#searchable)

```

```

### Multi-select

[](#multi-select)

```

```

### Livewire Props

[](#livewire-props)

PropTypeDefaultDescription`wire:model`mixed`null`Selected value(s)`options`arrayrequiredKey-value options`placeholder`string`'Select an option'`Placeholder text`searchable`boolean`false`Enable search`multiple`boolean`false`Allow multiple selections`disabled`boolean`false`Disable selectVue 3 Usage
-----------

[](#vue-3-usage)

### Setup

[](#setup)

```
import { SbSelect } from './vendor/sb-select';
app.component('SbSelect', SbSelect);
```

### Basic Usage

[](#basic-usage-1)

```

import { ref } from 'vue';

const selected = ref(null);
const options = {
  draft: 'Draft',
  published: 'Published',
  archived: 'Archived'
};

```

### With Placeholder

[](#with-placeholder-1)

```

```

### Searchable

[](#searchable-1)

```

import { ref } from 'vue';

const country = ref(null);
const countries = {
  us: 'United States',
  ca: 'Canada',
  uk: 'United Kingdom',
  de: 'Germany',
  fr: 'France',
  // ... more countries
};

```

### Multi-select

[](#multi-select-1)

```

  Selected: {{ selectedTags }}

import { ref } from 'vue';

const selectedTags = ref([]);
const tags = {
  frontend: 'Frontend',
  backend: 'Backend',
  design: 'Design',
  devops: 'DevOps'
};

```

### Form Example

[](#form-example)

```

      Category

      Tags

      Save

```

### Vue Props

[](#vue-props)

PropTypeDefaultDescription`modelValue`Any`null`Selected value(s)`options`Objectrequired`{ value: 'Label' }` pairs`placeholder`String`'Select an option'`Placeholder text`searchable`Boolean`false`Enable filtering`multiple`Boolean`false`Multi-select mode`disabled`Boolean`false`Disable interaction### Events

[](#events)

EventPayloadDescription`update:modelValue``any`Emitted when selection changesFeatures
--------

[](#features)

- **Custom Styling**: Matches form design
- **Searchable**: Filter options by typing
- **Multi-select**: Select multiple values
- **Checkmarks**: Visual selection indicators
- **Keyboard Navigation**: Escape to close
- **Click Outside**: Closes on outside click

Options Format
--------------

[](#options-format)

```
// Object format (value => label)
const options = {
  draft: 'Draft',
  published: 'Published',
  archived: 'Archived'
};
```

Multi-select Values
-------------------

[](#multi-select-values)

When `multiple` is true, the model value is an array:

```
// Single select
const selected = ref('draft'); // string

// Multi-select
const selected = ref(['frontend', 'backend']); // array
```

Styling
-------

[](#styling)

Uses Tailwind CSS:

- White background with border
- Blue ring on focus
- Checkmark for selected items
- Hover highlight
- Disabled opacity

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10, 11, or 12
- Tailwind CSS 3.x

License
-------

[](#license)

MIT License

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance73

Regular maintenance activity

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

154d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a38dc9b4ccc180ee3e9df8879f8747ea9dbf36812c6546827fe504fa8993eb8?d=identicon)[mrshanebarron](/maintainers/mrshanebarron)

---

Tags

laravellivewireformdropdownselectvue

### Embed Badge

![Health badge](/badges/mrshanebarron-select/health.svg)

```
[![Health](https://phpackages.com/badges/mrshanebarron-select/health.svg)](https://phpackages.com/packages/mrshanebarron-select)
```

###  Alternatives

[vildanbina/livewire-tabs

Laravel Livewire Tab Form component

504.6k](/packages/vildanbina-livewire-tabs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
