Livewire Async Select

Livewire Async Select stats

Downloads
1
Stars
1
Open Issues
0
Forks
0

View on GitHub →

A powerful async select component for Laravel Livewire with Alpine.js - a modern alternative to Select2

Livewire Async Select

A powerful async select component for Laravel Livewire with Alpine.js - a modern, lightweight alternative to Select2.

🎥 Demo

▶️ Watch Full Demo on YouTube

✨ Features

  • 🚀 Asynchronous Loading - Load options dynamically from API endpoints
  • 🔍 Search & Filter - Built-in search with debouncing
  • 🎯 Multiple Selection - Beautiful chip/tag display
  • Alpine.js Powered - Lightweight, no jQuery dependency
  • 🎨 Styled with Tailwind CSS - Pre-built styles with las- prefix
  • 🎭 Custom Slots - Fully customizable rendering
  • 📦 Easy Integration - Native Livewire component
  • 🔄 Two-way Binding - Full wire:model support
  • 🔒 No Style Conflicts - All classes prefixed with las-

📚 Documentation

📖 Full Documentation

Complete guides, examples, and API reference available at:

https://livewire-select.thejano.com/

To build and view the documentation locally, see DOCS.md.

⚡ Quick Install

  1. Install via Composer:
composer require drpshtiwan/livewire-async-select
  1. Publish the CSS assets:
php artisan vendor:publish --tag=async-select-assets
  1. Setup your layout (important!):
<head>
@asyncSelectStyles
@livewireStyles
</head>
<body>
{{ $slot }}
 
@livewireScripts
@stack('scripts') {{-- Required! --}}
</body>

⚠️ Important: The @stack('scripts') directive is required for the component to work properly.

🎯 Basic Usage

<livewire:async-select
name="user_id"
wire:model="selectedUser"
endpoint="/api/users/search"
placeholder="Search users..."
/>

→ View full documentation

📋 Requirements

  • PHP 8.1+
  • Laravel 10.x, 11.x, or 12.x
  • Livewire 3.3+

🆚 Why This Package?

Feature Livewire Async Select Select2
jQuery Dependency ❌ No ✅ Yes
Livewire Integration ✅ Native ⚠️ Manual
Bundle Size 🟢 Small 🟡 Large
Modern Stack ✅ Yes ❌ Legacy

🤝 Contributing

Contributions are welcome! Please see the documentation for details.

📄 License

The MIT License (MIT). Please see License File for more information.

🙏 Credits

🔗 Links

drpshtiwan photo

Medical Doctor (M.B.Ch.B) & Web Developer

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Drpshtiwan Livewire Async Select Related Articles

Laravel Livewire Async Select image

Laravel Livewire Async Select

Read article
Honeybadger logo

Honeybadger

Simple developer-focused application monitoring for Laravel. Error tracking, log management, uptime monitoring, status pages, and more!

Honeybadger
Celebian logo

Celebian

Celebian is a social media marketing agency specializing in helping their clients go viral on TikTok. Whether you're looking to reach a bigger audience or gain more Tiktok followers, likes, and views, they've got you covered.

Celebian
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud