Matrix Hero

Matrix Hero

Full-width hero section with cascading matrix rain and centered green-phosphor glow text.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/matrix-hero.json

▸ Or install manually

  1. Copy the source from the Code tab above.
  2. Place it at components/mellow/matrix-hero.tsx
  3. Import and use.

API Reference

PropTypeDefaultDescription
textstring"Welcome to the Matrix, Neo."Hero headline displayed centered over the rain. Ignored when children is provided.
speednumber1Rain fall speed multiplier.
pausedbooleanfalseFreeze the rain animation.
charsetstringCharacters used in the rain columns. Defaults to half-width katakana + digits.
glowIntensitynumber1Multiplier for the text glow radius. 0 disables glow.
classNamestringAdditional CSS classes for the outer wrapper.
childrenReact.ReactNodeCustom content rendered centered over the rain, replacing the default text.