PHPackages                             mrshanebarron/dropdown - 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/dropdown

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

mrshanebarron/dropdown
======================

Dropdown menu component for Laravel - supports Livewire and Vue

v1.0.4(5mo ago)013MITBladePHP ^8.1

Since Dec 14Pushed 4mo agoCompare

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

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

Dropdown
========

[](#dropdown)

A dropdown menu component for Laravel applications. Supports various widths, alignments, and auto-close behaviors. Works with Livewire and Vue 3.

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

[](#installation)

```
composer require mrshanebarron/dropdown
```

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

[](#livewire-usage)

### Basic Usage

[](#basic-usage)

```

        Options

    Edit
    Delete

```

### Right Aligned

[](#right-aligned)

```

        Menu

    Profile
    Settings
    Logout

```

### Custom Width

[](#custom-width)

```

        Wide Menu

    Custom content here

```

### Livewire Props

[](#livewire-props)

PropTypeDefaultDescription`align`string`'left'`Alignment: `left`, `right`, `center``width`string`'48'`Width: `48`, `56`, `64`, `72`, `96``close-on-click`boolean`true`Close when item clicked`close-on-outside-click`boolean`true`Close on outside clickVue 3 Usage
-----------

[](#vue-3-usage)

### Setup

[](#setup)

```
import { SbDropdown, SbDropdownItem } from './vendor/sb-dropdown';
app.component('SbDropdown', SbDropdown);
app.component('SbDropdownItem', SbDropdownItem);
```

### Basic Usage

[](#basic-usage-1)

```

        Options

    Edit
    Duplicate
    Delete

```

### Alignment Options

[](#alignment-options)

```

  ...

  ...

  ...

```

### Width Options

[](#width-options)

```

  ...
  ...
  ...
  ...
  ...

```

### User Menu Example

[](#user-menu-example)

```

        {{ user.name }}

      {{ user.name }}
      {{ user.email }}

    Profile
    Settings

        Logout

```

### Prevent Auto-Close

[](#prevent-auto-close)

```

      Filters

      Active

      Archived

```

### Vue Props

[](#vue-props)

PropTypeDefaultDescription`align`String`'left'`Position: `left`, `right`, `center``width`String`'48'`Width class suffix`closeOnClick`Boolean`true`Close when content clicked`closeOnOutsideClick`Boolean`true`Close on outside click### Slots

[](#slots)

SlotDescription`trigger`Element that opens dropdowndefaultDropdown menu contentFeatures
--------

[](#features)

- **Auto-close**: Closes on outside click and Escape key
- **Animations**: Smooth fade and slide transitions
- **Flexible Width**: Multiple preset width options
- **Alignment**: Left, right, or center aligned

Accessibility
-------------

[](#accessibility)

- `role="menu"` attribute
- `aria-orientation="vertical"`
- Escape key closes menu
- Focus management

Styling
-------

[](#styling)

Uses Tailwind CSS:

- White background with shadow
- Ring border effect
- Smooth transition animation
- Z-index for proper stacking

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

[](#requirements)

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

License
-------

[](#license)

MIT License

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance73

Regular maintenance activity

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity47

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 ~0 days

Total

5

Last Release

153d ago

### Community

Maintainers

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

---

Tags

laravelmenulivewiredropdownvuepopover

### Embed Badge

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

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

###  Alternatives

[ijpatricio/mingle

Use Vue and React in Laravel Livewire Applications.

43445.4k2](/packages/ijpatricio-mingle)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[mischasigtermans/laravel-altitude

Claude Code agents for the TALL stack, powered by Laravel Boost

1139.2k](/packages/mischasigtermans-laravel-altitude)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

116.6k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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