components / intro

intro.

full-screen intro overlay: a hero holds on top while lines take turns in a fixed slot beneath it, then the whole scene fades out. skippable, with a play-once localStorage gate.

installation
bunx @justin06lee/chrome@latest add intro
props
nametypedefaultdescription
lines *ReactNode[]-lines shown one at a time in a fixed slot under the hero, in order.
heroReactNode-optional visual rendered above the lines for the whole intro (e.g. ascii art).
speednumber1playback speed multiplier — 2 plays the sequence twice as fast.
onComplete() => void-called once after the overlay finishes fading out (also on skip).
skippablebooleantruewhether to show the skip button.
skipLabelstring'skip'label for the skip button.
persistKeystring-when set, plays only once and remembers via localStorage.
classNamestring-extra classes for the overlay.