Skip to content

Lower thirdNew

A compact name and title banner for the lower third. Desktop pins it bottom-left; mobile stretches it across the bottom so it stays readable on a 9:16 canvas.

On stream

Chandler King

Software Engineer

import { OverlayRoot } from "@/components/stream/overlay-root";
import { STREAM_COPY } from "@/config/stream-copy";
import type { StreamLayout } from "@/config/stream-components";
import { cn } from "@/lib/utils";

const DEFAULTS = STREAM_COPY["lower-third"];

export function LowerThird({
  layout,
  eyebrow = DEFAULTS.eyebrow,
  name = DEFAULTS.name,
  role = DEFAULTS.role,
  avatar = DEFAULTS.avatar,
}: {
  layout: StreamLayout;
  preview?: boolean;
  eyebrow?: string;
  name?: string;
  role?: string;
  avatar?: string;
}) {
  const mobile = layout === "mobile";

  return (
    <OverlayRoot>
      <div
        className={cn(
          "absolute flex items-center rounded-[1.2cqw] border border-dashed border-white/70 bg-background/95 shadow-[0_18px_40px_-24px_rgba(0,0,0,0.85)]",
          mobile
            ? "inset-x-[6cqw] bottom-[8cqw] gap-[3cqw] px-[4cqw] py-[3cqw]"
            : "bottom-[7cqw] left-[4.5cqw] gap-[1.6cqw] px-[1.8cqw] py-[1.3cqw]",
        )}
      >
        <span
          className={cn(
            "shrink-0 overflow-hidden rounded-[0.8cqw] border border-dashed border-primary/40 bg-muted",
            mobile ? "size-[12cqw]" : "size-[5.4cqw]",
          )}
        >
          {/* eslint-disable-next-line @next/next/no-img-element */}
          <img
            src={avatar}
            alt=""
            className="size-full object-cover"
          />
        </span>
        <div className="min-w-0">
          <p
            className={cn(
              "font-mono uppercase tracking-[0.22em] text-primary",
              mobile ? "text-[2.6cqw]" : "text-[1.15cqw]",
            )}
          >
            {eyebrow}
          </p>
          <p
            className={cn(
              "truncate font-medium tracking-tight text-foreground",
              mobile ? "text-[5.2cqw]" : "text-[2.2cqw]",
            )}
          >
            {name}
          </p>
          <p
            className={cn(
              "truncate text-muted-foreground",
              mobile ? "text-[3cqw]" : "text-[1.25cqw]",
            )}
          >
            {role}
          </p>
        </div>
      </div>
    </OverlayRoot>
  );
}

Props

Layout

Desktop 16:9 for OBS, or mobile 9:16 for TikTok Live Studio.

Installation

Lower third is a browser-source overlay. Copy the URL for OBS or TikTok Live Studio. The live page has no site chrome and a transparent background.

In OBS, add a Browser source, paste the URL, and set the size to 1920 × 1080. Leave the page background transparent.

Usage

example.tsx

import { LowerThird } from "@/components/stream/lower-third";

export function Overlay() {
  return (
    <LowerThird
      layout="desktop"
      eyebrow="On stream"
      name="Chandler King"
      role="Software Engineer"
    />
  );
}

Browser source

Paste this URL into OBS or TikTok Live Studio. The query params match the props below.

browser-source.tsx

// OBS Browser source, 1920×1080.
const src = "https://chandlerking.dev/live/lower-third?layout=desktop&eyebrow=On+stream&name=Chandler+King&role=Software+Engineer";

Pins a name plate to the lower third on desktop and stretches it across the bottom on mobile. Everything outside the plate stays transparent.

Props

PropTypeDefaultNotes
eyebrowstring"On stream"Small label above the name. Query `eyebrow`.
namestring"Chandler King"Primary line on the plate. Query `name`.
rolestring"Software Engineer"Secondary line under the name. Query `role`.
avatarstring"/images/chandler-king-headshot.jpg"Portrait on the plate. Query `avatar` accepts a site path or an http(s) URL.
layout"desktop" | "mobile"RequiredCanvas orientation. Desktop is 1920×1080 for OBS. Mobile is 1080×1920 for TikTok Live Studio. Query `layout`.
previewbooleanfalseSite-only helpers: a sample webcam fill, a looping alert, and a stinger replay control. Leave it off on the live route.

Notes & Features

  • Desktop vs mobile. Desktop pins the plate bottom-left. Mobile stretches it edge to edge so the name stays readable on a phone canvas.
  • Portrait. The avatar is a square crop. On the live URL, pass a path on this site or a full image URL.
  • Transparent outside the plate. The rest of the browser source stays clear, so it can sit over gameplay or a camera.

Manual installation

Rather than the browser source, copy Lower third into a project. Install its dependencies, then copy all 2 files into the matching path.

Source files

src/components/stream/lower-third.tsx

import { OverlayRoot } from "@/components/stream/overlay-root";
import { STREAM_COPY } from "@/config/stream-copy";
import type { StreamLayout } from "@/config/stream-components";
import { cn } from "@/lib/utils";

const DEFAULTS = STREAM_COPY["lower-third"];

export function LowerThird({
  layout,
  eyebrow = DEFAULTS.eyebrow,
  name = DEFAULTS.name,
  role = DEFAULTS.role,
  avatar = DEFAULTS.avatar,
}: {
  layout: StreamLayout;
  preview?: boolean;
  eyebrow?: string;
  name?: string;
  role?: string;
  avatar?: string;
}) {
  const mobile = layout === "mobile";

  return (
    <OverlayRoot>
      <div
        className={cn(
          "absolute flex items-center rounded-[1.2cqw] border border-dashed border-white/70 bg-background/95 shadow-[0_18px_40px_-24px_rgba(0,0,0,0.85)]",
          mobile
            ? "inset-x-[6cqw] bottom-[8cqw] gap-[3cqw] px-[4cqw] py-[3cqw]"
            : "bottom-[7cqw] left-[4.5cqw] gap-[1.6cqw] px-[1.8cqw] py-[1.3cqw]",
        )}
      >
        <span
          className={cn(
            "shrink-0 overflow-hidden rounded-[0.8cqw] border border-dashed border-primary/40 bg-muted",
            mobile ? "size-[12cqw]" : "size-[5.4cqw]",
          )}
        >
          {/* eslint-disable-next-line @next/next/no-img-element */}
          <img
            src={avatar}
            alt=""
            className="size-full object-cover"
          />
        </span>
        <div className="min-w-0">
          <p
            className={cn(
              "font-mono uppercase tracking-[0.22em] text-primary",
              mobile ? "text-[2.6cqw]" : "text-[1.15cqw]",
            )}
          >
            {eyebrow}
          </p>
          <p
            className={cn(
              "truncate font-medium tracking-tight text-foreground",
              mobile ? "text-[5.2cqw]" : "text-[2.2cqw]",
            )}
          >
            {name}
          </p>
          <p
            className={cn(
              "truncate text-muted-foreground",
              mobile ? "text-[3cqw]" : "text-[1.25cqw]",
            )}
          >
            {role}
          </p>
        </div>
      </div>
    </OverlayRoot>
  );
}

src/components/stream/overlay-root.tsx

import type { ReactNode } from "react";

import { cn } from "@/lib/utils";

export function OverlayRoot({
  children,
  className,
}: {
  children: ReactNode;
  className?: string;
}) {
  return (
    <div
      className={cn(
        "@container relative h-full w-full overflow-hidden pointer-events-none",
        className,
      )}
    >
      {children}
    </div>
  );
}

Carve that warmth into me.

Vinland Saga
Chandler King

Building AnglerIQ & The Sozo CRM

Open to software engineering roles

Crafted by Chandler King · Kansas City, MO