Cards & content / Badges & tags

Tracked Micro Label

9px uppercase Inter with very wide letter spacing, centred above sections as a quiet eyebrow (Showreel, About, Imagine Build Tell).

Rebuilt from epic.net in the Gallery Graphite Editorial style.

npx shadcn@latest add https://justyoink.it/r/gallery-graphite-editorial/blocks/tracked-section-label.json

Looks exactly like epic.net: brings its fonts and colours, namespaced so your own theme stays untouched.

Usage

Props: `text` (label copy, rendered uppercase), `as` (span | p | h2), and `className`. The label fades in over 350ms the first time it scrolls into view.

components/tracked-section-label.tsx
import { useEffect, useRef, useState } from "react";

export interface TrackedMicroLabelProps {
  text?: string;
  className?: string;
  as?: "span" | "p" | "h2";
}

export default function TrackedMicroLabel({
  text = "Observe, shape, share.",
  className = "",
  as = "span",
}: TrackedMicroLabelProps) {
  const ref = useRef<HTMLElement | null>(null);
  const [visible, setVisible] = useState(false);

  useEffect(() => {
    const el = ref.current;
    if (!el) return;
    if (typeof IntersectionObserver === "undefined") {
      setVisible(true);
      return;
    }
    const io = new IntersectionObserver(
      (entries) => {
        if (entries.some((e) => e.isIntersecting)) {
          setVisible(true);
          io.disconnect();
        }
      },
      { threshold: 0.2 }
    );
    io.observe(el);
    return () => io.disconnect();
  }, []);

  const Tag = as as any;

  return (
    <section className="w-full bg-canvas text-ink">
      <div className="mx-auto flex max-w-[1200px] items-center justify-center border-b border-hairline py-10">
        <Tag
          ref={ref}
          className={`section-label font-sans text-[9px] font-normal uppercase leading-none tracking-[0.5em] text-ink transition-opacity duration-[350ms] ease-[cubic-bezier(0.42,0,0.58,1)] motion-reduce:transition-none ${
            visible ? "opacity-100" : "opacity-0"
          } ${className}`}
        >
          {text}
        </Tag>
      </div>
    </section>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Gallery Graphite Editorial

The whole style →

Outlined Arrow Pill Button

Buttons

Square Outline Cookie Panel

Toasts & snackbars

Rounded Showreel Video Frame

Media & mockups

Line-Art Blueprint Illustration

Animated graphics

Hairline Minimal Header

Headers & nav bars

Floating Object Project Hero

Heroes