Modus UI

Folio Title

Web (React)

A journal index whose italic serif titles decode from scrambled glyphs, set in your theme.

A numbered journal index on the page ground: mono caption, numerals in --primary, italic serif titles and pill-shaped meta tags, all drawn from the theme tokens so it follows light, dark and every palette. On mount each title decodes left to right, one after another. A short band of scrambled glyphs leads the reveal while a few characters further along flicker, then the title settles. Type scales with the container, the meta column drops away on narrow screens, and titles appear as-is when the user prefers reduced motion. The component fills its parent, so give it a sized container.

MODUS JOURNAL03 ENTRIES
01

A Grid Is a Promise You Keep

ESSAY · 6 MIN
02

Motion Should Explain, Not Decorate

PRINCIPLE · 4 MIN
03

Tokens Before Pixels

WORKSHOP · 9 MIN
Modus / Folio Title

Installation

CLI

npx @modus-ui/cli add folio-title

Manual

  1. Install framer-motion.
  2. Copy the code from the component tab.
  3. Create a file at components/ui/folio-title.tsx.
  4. Paste the code.

Usage

tsx
import { FolioTitle } from "@/components/ui/folio-title";

export default function Example() {
  return (
    <div className="h-[420px] w-full">
      <FolioTitle
        entries={[
          { title: "A Grid Is a Promise You Keep", meta: "ESSAY · 6 MIN" },
          { title: "Tokens Before Pixels", meta: "WORKSHOP · 9 MIN" },
        ]}
      />
    </div>
  );
}

Props

PropTypeDefaultDescription
durationnumber560Length of each decode in milliseconds.
staggernumber140Delay between headings in milliseconds.
scrambleLengthnumber10Number of scrambled glyphs leading the reveal.
preserveChancenumber0.3Chance a leading glyph shows its real character.
tailChancenumber0.18Chance an unrevealed character flickers to a glyph.
labelstring"MODUS JOURNAL"Header caption on the left.
entries{ title: string; meta: string }[]Three Modus journal entriesRows to list; each is numbered automatically.

Comments

  • No comments yet.