Flip Button

PRONew

Preview live, install via shadcn or copy the source.

Installation

Install via shadcn

This will install the component and its dependencies automatically.

PRO COMPONENT

Unlock with PRO

This component is exclusive to reframe/ui PRO.
Get instant access to all premium components and templates.

Usage

flip-button-usage.tsxTSX

Props

NameTypeDefaultRequiredDescription
frontTextstringYesText on the front face.
backTextstringNoText on the back face — defaults to frontText.
variant"default" | "primary" | "outline" | "ghost" | "amber" | "secondary"defaultNoVisual variant.
size"default" | "sm" | "lg" | "icon"defaultNoSize preset.
iconReact.ReactNodeNoOptional icon beside text on both faces.
durationnumber0.38NoFlip animation duration (s).
easestringpower3.inOutNoGSAP ease for flip.
flipOffsetnumber100NoY percent offset for flip.
variantClassNamestringNoOverride variant classes.
sizeClassNamestringNoOverride size classes.
frontClassNamestringNoClasses for front layer.
backClassNamestringNoClasses for back layer.
sizerClassNamestringNoClasses for invisible sizer.
disableFlipbooleanfalseNoDisable flip animation.
classNamestringNoAdditional classes merged into the button.
© reframe/ui 2026Built by @thommysart
More in Buttons & Links