0Views
0Copies
Variants
API Reference
Props for <PixelHeadline />
| Prop | Type | Default | Description |
|---|---|---|---|
| topColor | string | "#0f1f3a" | The pixels at the top of the letters. |
| bottomColor | string | "#071322" | The pixels at the foot of the letters; the two colors blend down each line. |
| accentTopColor | string | "#234cd6" | The accent word’s pixels, at the top of its letters. |
| accentBottomColor | string | "#1836bd" | The accent word’s pixels, at the foot of its letters. |
| backgroundColor | string | "rgba(0, 0, 0, 0)" | The surface behind the headline; transparent shows the page through. |
| Prop | Type | Default | Description |
|---|---|---|---|
| uppercase | boolean | true | Sets everything in capitals. |
| font | FontValue | {"fontFamily":"Archivo","fontWeight":900,"lineHeight":0.84,"letterSpacing":"-0.01em"} | Family, weight, line height and letter spacing. The component doesn’t load the font: add it to your app. |
| fontStretch | 'extra-condensed' | 'condensed' | 'semi-condensed' | 'normal' | 'semi-expanded' | 'expanded' | "extra-condensed" | The width of the letterforms. A font loaded with its width axis (Archivo) uses its real condensed cut; any other font is squeezed to match. |
| align | 'left' | 'center' | 'right' | "center" | How the lines line up. |
| Prop | Type | Default | Description |
|---|---|---|---|
| size | number | 148 | Largest font size; it scales down so the longest line always fits the width. |
| pixelSize | number | 3 | The grid the letters are cut into; finer on type under 100px, so small letters stay readable. |
| pixelFill | number | 93 | Share of each grid cell its pixel fills; lower leaves wider gaps. |
| padding | number | 0 | Space around the text; at most 8% of the width. |
| cornerRadius | number | 0 | Rounds the background’s corners. |
| interaction | 'hover' | 'hold' | 'none' | "hover" | What pushes the pixels away: the pointer passing over them, pressing and holding on them, or nothing. |
| reach | number | 72 | How far from the pointer pixels are pushed. |
| strength | number | 4.5 | How hard they are pushed; higher clears a wider, emptier hole. |
| unevenness | number | 45 | How unevenly they are pushed; 0 piles them into a clean ring. |
| pull | number | 0.02 | How hard each pixel is pulled home; higher snaps into the letters faster. |
| damping | number | 0.86 | Speed each pixel keeps as it moves; lower settles sooner, higher swings past home. |
| entrance | boolean | true | Pixels fly in and the headline rises the first time it’s seen; off starts it complete. |
| scatter | number | 1 | How far from home the pixels start: 1 is anywhere in the headline’s own box. |
| entranceSpeed | number | 1.8 | How fast the pixels fly in; the speed they spring back at after a push stays the same. |
| rise | number | 18 | How far the headline rises as it enters. |
| riseDuration | number | 0.6 | How long the rise and fade take. |
| Prop | Type | Default | Description |
|---|---|---|---|
| lines | Array<{ text, accent, ending }> | [{"text":"Less chaos.","accent":"","ending":""},{"text":"More","accent":"clarity.","ending":""}] | The headline’s lines, top to bottom. |
| Prop | Type | Default | Description |
|---|---|---|---|
| looseOpacity | number | 72 | Opacity of a pixel off its spot, pushed or still flying in. |
A
Motion score
Main-thread composite
- Category
- Text Effects
- Framework
- React
- Published
- Nov 27, 2026
- Dependencies
- Variants
Pixel Headline
A large headline made of thousands of square pixels that fly in and assemble the letters, shaded from top to foot, with one word in an accent color. The pointer pushes the pixels apart and they spring back into place. The lines, colors, font, pixel grid, push, spring and entrance can all be set.