0Views
0Copies

API Reference
Props for <DecodeHeadline />
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#1c1030" | The headline's letters. |
| gradientFrom | string | "#7c3aed" | The cycling word's first letter; the letters after it blend toward the end color. |
| gradientTo | string | "#c026d3" | The cycling word's last letter. |
| codeColor | string | "#7c3aed" | The characters a letter flickers through while it decodes. |
| accentColor | string | "#059669" | The sparkline under the cycling word. |
| shadowColor | string | "rgba(0, 0, 0, 0)" | The soft shadow under the letters; transparent for none. |
| backgroundColor | string | "rgba(0, 0, 0, 0)" | The surface behind the headline; any visible color gives it padding and rounded corners, transparent shows the page through. |
| lead | string | "Trade every" | The first line, before the cycling word. |
| words | Array<{ word }> | [{"word":"chain"},{"word":"token"},{"word":"market"},{"word":"asset"}] | The words the first line cycles through; the first one is what screen readers read. |
| tail | string | "from" | The first line, after the cycling word. |
| second | string | "one powerful dashboard" | The second line. |
| font | FontValue | {"fontFamily":"Funnel Display","fontWeight":500,"lineHeight":1.02,"letterSpacing":"-0.035em"} | The headline's family, weight, line height and letter spacing. The component doesn’t load the font: add it to your app. |
| codeFont | FontValue | {"fontFamily":"Geist Mono"} | The family of the decoding characters. The component doesn’t load the font: add it to your app. |
| size | number | 66 | The largest font size; it scales down with the screen, to 58.5% of this on a phone. |
| align | 'left' | 'center' | 'right' | "center" | How the two lines line up. |
| interval | number | 4000 | How long each cycling word stays before the next decodes in. |
| letterStagger | number | 36 | Time between one letter settling and the next; a changed word settles a little slower, a hovered one a touch slower. |
| flicker | number | 60 | How long each flickering character holds before the next. |
| scramble | string | ".:+=x0$#%/<>" | The characters a letter flickers through before it settles. |
| entrance | boolean | true | The lines rise in and decode the first time the headline is seen; off starts it complete. |
| hoverDecode | boolean | true | A word scrambles for a beat, then re-decodes letter by letter, when the pointer crosses it. |
| pauseOnHover | boolean | true | The cycling word holds while the pointer is on it. |
| showSparkline | boolean | true | The sparkline drawn under each cycling word. |
- Category
- Text Effects
- Framework
- React
- Published
- Nov 13, 2026
- Dependencies
- Variants
Decode Headline
A two-line headline that rises in while its letters decode out of flickering chart characters. The first line's middle word cycles through a list, blended with a gradient, with a sparkline drawing under it, and any word re-decodes when the pointer crosses it. The copy, words, colors, fonts, size, timing and scramble characters can all be set.