EN
Getting started
74 · Forms

Sticky actions

In long forms, the bar with the Save and Cancel buttons stays visible while the page scrolls. It is built with Tailwind's sticky classes; no separate component is needed.

PRO Form layout
03

On a panel page

In the panel layout the content area scrolls on its own, so sticky top-0 sticks the bar right below the top bar with no extra setup. If you put the bar inside the form, the Save button works with type="submit".

BLADE
<acun:form wire:submit="save" dirty-check>
    <div class="sticky top-0 z-10 mb-6 flex items-center justify-between rounded-sm bg-white/90 px-5 py-3 shadow-sm backdrop-blur dark:bg-zinc-900/90">
        <h1 class="text-base font-semibold text-gray-900 dark:text-zinc-100">Company settings</h1>
        <div class="flex gap-2">
            <acun:button variant="white" :href="route('settings.index')">Cancel</acun:button>
            <acun:button type="submit">Save</acun:button>
        </div>
    </div>

    <acun:card>…</acun:card>
</acun:form>
PropValues
type="submit"Submits the form while the bar is inside it
Acun UI · Sticky actionsDetailed usage and examples