Actions Pure CSS

Flip button

Hover or focus rolls each part of the button a quarter turn like the face of a cube to reveal the second label and icon — pure CSS, fully keyboard operable.

Real scenarios

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

A wizard’s step footer

Hover the continue button — or Tab to it — and every part rolls a quarter turn: the words become an invitation, the arrow becomes a spark.

2 / 4

A download row

Real anchors whose second face tells you the size before you commit — keyboard focus flips them exactly like a hover.

Both directions

The cube rolls the same quarter turn in RTL — nothing to configure, the direction comes from the page.

Important props

Important props
Prop Type Default What it does
label string null The idle label (or pass it through the slot).
hoverLabel string null The label on the cube’s second face.
icon / hoverIcon string 'arrow-right' / 'sparkles' The first and second face’s icons; directional ones mirror in RTL.
variant string 'primary' primary · secondary · inverse.
size string 'md' Sizes: sm · md · lg.

Snippet

<x-nx::flip-button label="ادامهٔ راه‌اندازی" hover-label="بزن بریم" icon="arrow-right" hover-icon="zap"
    wire:click="save" />