v0.0.2
Demos (demo panel, opens in a new tab)

Sticky actions

A bar that keeps the Save and Cancel buttons visible while a long form scrolls; it is built with Tailwind's sticky classes.

Form layout zubazar/ui-pro

PRO

This component is in Zubazar UI Pro; Zubazar UI Pro brings Zubazar UI with it. Installing Zubazar UI Pro →

On a panel page

BLADE

In the panel layout sticky top-0 sticks the bar right below the top bar; inside the form, Save works with type="submit".

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

    <zb:card>…</zb:card>
</zb:form>
PropValues
type="submit"Submits the form while the bar is inside it

Developer notes

Events, hooks and details
  • z-10 keeps the bar above the fields; the semi-transparent background (bg-surface/90) and backdrop-blur keep the content passing under it readable.
Zubazar UI · ZubazarDesigned for people.