Base
JS behaviour
Drawer
The same dialog in drawer mode; a cart sliding from the inline-end and a filters panel from the inline-start.
Real scenarios
The component as it is used in a product — not a specimen grid.
The cart drawer
Opens from the inline-end, sums in the footer, and pays with the same slow action so the button can show its spinner.
Total so far: 695,000 Toman
The filters panel, from the other side
side="start" puts it beside the reading order; the switches bind straight into Livewire state and the apply button reports the count.
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| side | string | end | Entering side: end (default) or start — it follows the text direction. |
| title / footer | string|slot | null | The drawer head and the footer slot for the summary/checkout. |
Snippet
<x-nx::drawer side="end" wire:model="state.cartOpen" title="سبد خرید">
{{-- آیتمها --}}
<x-slot:footer>
<x-nx::button variant="primary" block wire:click="save('پرداخت شد')">پرداخت</x-nx::button>
</x-slot:footer>
</x-nx::drawer>