bladewindui / drawer
BladewindUI Drawer component
v5.1.0
2026-09-10 00:47 UTC
Requires
- php: >=8.1
- bladewindui/core: ^5.1
- bladewindui/icon: ^5.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Drawer
An accessible, responsive drawer or sheet that opens from any physical edge of the viewport.
Installation
composer require bladewindui/drawer
Usage
<x-bladewind::drawer name="customer-details" title="Customer details"> Drawer content </x-bladewind::drawer> <x-bladewind::button onclick="showDrawer('customer-details')">Open drawer</x-bladewind::button>
Use showDrawer(name), hideDrawer(name), and toggleDrawer(name) to control a drawer. See the full Drawer documentation for positions, sizes, slots, modal behavior, and accessibility guidance.
Livewire
Open/closed state (data-state) lives in the drawer's own DOM, not in Livewire's component state. A Livewire re-render that touches this markup for reasons unrelated to the drawer silently closes it — wrap the drawer in wire:ignore if it sits inside such a component, especially one that can re-render while the drawer is open.
License
MIT, see the LICENSE file.