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

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

mrshanebarron/drawer
====================

Slide-out drawer component for Laravel - supports Livewire and Vue

v1.0.3(4mo ago)016MITBladePHP ^8.1

Since Dec 14Pushed 4mo agoCompare

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

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

Drawer
======

[](#drawer)

A slide-out panel component for Laravel applications. Slides in from any edge of the screen. Works with Livewire and Vue 3.

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

[](#installation)

```
composer require mrshanebarron/drawer
```

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

[](#livewire-usage)

### Basic Usage

[](#basic-usage)

```
Open Drawer

    Drawer content here

```

### Different Positions

[](#different-positions)

```

    Content

    Content

    Content

    Content

```

### Different Sizes

[](#different-sizes)

```

```

### Livewire Props

[](#livewire-props)

PropTypeDefaultDescription`wire:model`booleanrequiredControls visibility`position`string`'right'`Edge: `left`, `right`, `top`, `bottom``size`string`'md'`Width/height: `sm`, `md`, `lg`, `xl`, `full``title`string`null`Header title`close-on-overlay`boolean`true`Close on backdrop click`close-on-escape`boolean`true`Close on Escape keyVue 3 Usage
-----------

[](#vue-3-usage)

### Setup

[](#setup)

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

### Basic Usage

[](#basic-usage-1)

```

  Open Drawer

    Drawer content goes here

import { ref } from 'vue';
const showDrawer = ref(false);

```

### Positions

[](#positions)

```

  ...

  ...

  ...

  ...

```

### Sizes

[](#sizes)

```

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

```

### Mobile Navigation Example

[](#mobile-navigation-example)

```

      Home
      Products
      About
      Contact

```

### Shopping Cart Drawer

[](#shopping-cart-drawer)

```

    Cart ({{ cart.length }})

      Your cart is empty

          {{ item.name }}
          ${{ item.price }}

        Remove

          Total
          ${{ total }}

          Checkout

```

### Vue Props

[](#vue-props)

PropTypeDefaultDescription`modelValue`Boolean`false`Visibility (v-model)`position`String`'right'`Slide from: `left`, `right`, `top`, `bottom``size`String`'md'`Panel size`title`String`null`Header title`closeOnOverlay`Boolean`true`Close on backdrop`closeOnEscape`Boolean`true`Close on Escape### Events

[](#events)

EventDescription`update:modelValue`Emitted when visibility changesSize Reference (Left/Right)
---------------------------

[](#size-reference-leftright)

SizeMax Width`sm`24rem (384px)`md`28rem (448px)`lg`32rem (512px)`xl`36rem (576px)`full`100%Features
--------

[](#features)

- **Four Positions**: Slide from any screen edge
- **Multiple Sizes**: From small to full-width
- **Body Scroll Lock**: Prevents background scrolling
- **Overlay Backdrop**: Semi-transparent background
- **Keyboard Support**: Escape to close

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

[](#accessibility)

- Focus management
- Escape key handling
- Proper modal behavior

Styling
-------

[](#styling)

Uses Tailwind CSS:

- White background
- Shadow for depth
- Smooth slide transitions
- Header with close button

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

Maintenance74

Regular maintenance activity

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity46

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

4

Last Release

146d ago

### Community

Maintainers

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

---

Tags

laravellivewirevuesidebardrawerslideout

### Embed Badge

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

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

###  Alternatives

[livewire/flux

The official UI component library for Livewire.

9385.0M86](/packages/livewire-flux)[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)[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)
