FlowText

Text filled with a slowly flowing gradient. The ends match, so the loop never jumps. Text.

Open playground
Fluid by default

About

FlowText is a React component in the Text category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { FlowText } from "@ashutoshswamy/smoui" and set text, colors, duration.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { FlowText } from "@ashutoshswamy/smoui";

<FlowText text="Fluid by default" className="text-4xl font-semibold" />

Props 3

text

Text to fill.

string
colors

Gradient stops. Defaults to tones of the accent.

string[]
duration

Seconds per loop.

numberdefault 6