reframe/ui
reframe/ui

Command Palette

Search for a command to run...

Text Flip

Get
Work

Installation

Install Dependencies

Copy and Paste the component

@/components/reframe-ui/text-flip.tsx

Usage

Props

NameTypeDefaultRequiredDescription
childrenReact.ReactNode[]-YesItems to flip through (strings or nodes).
classNamestring-NoOptional wrapper class.
intervalnumber2NoSeconds between flips.
transitionTransition{ duration: 0.45, ease: [0.22, 1, 0.36, 1] }NoFramer Motion transition for flip.
variantsVariants-NoOverride the default flip variants.
onIndexChange(index: number) => void-NoCallback when the current index changes.
triggerbooleanNoStart/stop flipping.
modeAnimatePresenceProps['mode']waitNoAnimatePresence rendering mode.
perspectivenumber800NoCSS perspective (px) applied to container for 3D flip.
depthnumber10NoTransform-origin z-offset (px) for depth of flip.
axis'x' | 'y'xNoFlip axis. x = vertical flip, y = horizontal flip.
© Copyright 2025. All rights reserved.Built by @thommysart