Xzero UI
Pro library

In-view title

Bring a section title in as it scrolls into view.

$ pnpm dlx shadcn@4.23.0 add @xzero-ui/in-view-title
Live · keyboard ready

When to use

When not to use

Installation

Register both Xzero UI namespaces in your project's components.json:

{
  "registries": {
    "@xzero-ui": "https://mcp.xzero.co.uk/r/{name}.json",
    "@xzero-ui-pro": "https://mcp.xzero.co.uk/r/pro/{name}.json"
  }
}
npx shadcn@4.23.0 add @xzero-ui/in-view-title

Install xzero-foundation once, and import @/components/xzero/foundation.css in your app root. No Xzero token is used by this snapshot. For sample portraits, photos, fonts, or logos, download https://mcp.xzero.co.uk/install-assets.mjs and run node xzero-install-assets.mjs <receiving-project>.

Usage

import { InViewTitle } from "@/components/xzero/in-view-title/in-view-title";

export function FeaturesHeader() {
  return (
    <InViewTitle
      variant="line"
      text="Everything your team needs to ship"
      lines={["Everything your team", "needs to ship"]}
    />
  );
}

API reference

InViewTitle

A section title that reveals itself once it scrolls into view, with five reveal styles.

PropTypeDefaultDescription
text (required)string–The title copy.
variant"word" | "line" | "blur" | "tracking" | "wipe""blur"Reveal style. blur suits most headings; word and line rise from a clip; tracking opens letter spacing; wipe uncovers left to right.
as"h1" | "h2" | "h3""h2"Heading level.
linesstring[]–Explicit line breaks for the line variant. Falls back to one line of text.
oncebooleantrueSet false to replay the reveal on every entry.
classNamestring–Merged onto the wrapper.
idstring–Forwarded to the heading.

Accessibility

Motion

Responsive behavior

Performance

Notes for AI

Also in text effects

Guidance for AI tools

In-view title: Bring a section title in as it scrolls into view. Follow the declared prop types and do not invent props. Keep keyboard access, reduced motion support, and both light and dark themes intact when adapting it.

Full library index: https://ui.xzero.co.uk/llms.txt

Browse all components