Modus UI

Floating Text

Web (React)

A text component that floats and drifts subtly, creating an editorial, high-end feel.

A text component that floats and drifts subtly, creating an editorial, high-end feel. Use it for hero sections or decorative atmospheric text.

Editorial
Atmosphere

Floating Elements

Installation

CLI

npx @modus-ui/cli add floating-text

Manual

  1. Copy the code from the component tab.
  2. Create a file at components/ui/floating-text.tsx.
  3. Paste the code.

Usage

tsx
import { FloatingText } from "@/components/ui/floating-text";

export default function Example() {
  return <FloatingText className="font-serif text-4xl">Editorial Atmosphere</FloatingText>;
}

Props

PropTypeDefaultDescription
childrenReactNode-The text or elements to float.
classNamestring-Additional CSS classes for the text.

Comments

  • No comments yet.