Hero Fiber Top — React Hero Section
Drop-in hero: a left-set masthead pressed against the top edge while the silk-fiber field streams beneath it — fibers carry the lower two-thirds, the scrim carries the type.

Usage
import { HeroFiberTop } from "@/components/HeroFiberTop";
export function Landing() {
return (
<section style={{ height: "max(640px, 100svh)" }}>
<HeroFiberTop
title="Your next big idea."
subtitle="Replace this with your own story."
primaryCta={{ label: "Get started", href: "/start" }}
secondaryCta={null}
interactive
{...{
interactive: true,
title: "Work woven\nfrom light.",
subtitle: "Luminous silk fibers streaming through the dark, computed per-pixel. Your name goes at the top; the current does the rest."
}}
/>
</section>
);
}Implementation notes & API
Purpose: drop-in hero section — a full first screen with real, selectable DOM text (stacked layout) over a GPU fiber-flow background. Copy it, ship it. Mount: give the parent an explicit height (e.g. height: 100dvh or a min-height); the shell fills it and clamps its own type with container queries. Props: eyebrow, title, subtitle, primaryCta, secondaryCta, badges, scheme ("dark" | "light"), accent, plus the fiber-flow shader uniforms. Default copy is for demonstration. Supply your own content and CTA href or onClick; children replaces the content stack. Interaction: the fiber-flow background animates on its own; text and CTAs are plain DOM (WCAG AA scrim, screen-reader readable). Guardrails: WebGPU required with graceful degradation; SSR renders inert DOM; prefers-reduced-motion freezes the shader and skips the entrance animation. Do not stack two heroes on one screen.
| Property | Type | Notes / default |
|---|---|---|
title / subtitle | ReactNode | Your content; named heroes include example copy |
eyebrow | string | Optional short label |
primaryCta / secondaryCta | string | HeroCta | null | { label, href } or { label, onClick }; null hides the action |
children | ReactNode | Replaces the entire default content stack |
interactive | boolean | false in the library; enabled in this preview |
scheme | "dark" | "light" | dark |
className / style | string / CSSProperties | Applied to the hero section |
fallback | ReactNode | Content shown if the background renderer is unavailable |