Saasflare UI
Components

Flip Words

Cycles through a list of words with a vertical flip animation — for dynamic hero headlines.

Installation

npx shadcn@latest add https://ui.saasflare.io/r/flip-words.json
pnpm add @saasflare/ui

Usage

Build websites faster

"use client"import { FlipWords } from "@saasflare/ui"/** Inline rotating words inside a headline. */export function Demo() {    return (        <div className="flex h-64 w-full items-center justify-center rounded-lg border bg-fd-card p-8">            <h2 className="text-2xl font-bold tracking-tight">                Build <FlipWords words={["websites", "apps", "products"]} /> faster            </h2>        </div>    )}

Custom

Loading…
"use client"import { FlipWords } from "@saasflare/ui"/** Tune the cycle interval and color of the rotating words. */export function Demo() {    return (        <div className="flex h-64 w-full items-center justify-center rounded-lg border bg-fd-card p-8">            <h2 className="text-2xl font-bold tracking-tight">                Software that is{" "}                <FlipWords                    words={["scalable", "reliable", "beautiful"]}                    interval={2000}                    className="text-primary"                />            </h2>        </div>    )}

API Reference

Prop

Type

On this page