use wire emit inside alpinejs code example
Example: Sharing State Between Livewire And Alpine
You can sharing variable between livewire and alpine using : @entangle
class Counter extends Component
{
public $showDropdown = false;
}
<div x-data="{ open: @entangle('showDropdown') }">