Actions JS behaviour

Fill button

A circle grows from the side the pointer entered until it fills the button while the label slides up for its copy; on leave it retreats toward the exit.

Real scenarios

The component as it is used in a product — not a specimen grid.

The pricing card’s closer

The Pro plan: the fill floods in from where the pointer entered and the label rolls over to its second line.

Pro 19 $ / mo
  • Unlimited projects
  • All 5 frameworks

A row of them

variant runs accent · inverse · gold; one of them is a real link — the fill plays on anchors exactly the same way.

All demos

Enter each one from a different side — the circle always starts where you did.

Important props

Important props
Prop Type Default What it does
variant string 'accent' The fill colour: accent · inverse · gold.
hoverLabel string null The second label that rolls in on hover; without it the idle label repeats.
icon / iconEnd string null An icon leading or trailing the label — in both copies.
shape string 'pill' pill or rounded; the corners stay concentric with the fill.
href string null With href the button becomes a link.

Snippet

<x-nx::fill-button variant="gold" hover-label="رایگان شروع کن" wire:click="save">
    شروع رایگان
</x-nx::fill-button>