0Views
0Copies
Variants
Loading preview...
API Reference
Props for <FlexHeadline />
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#12120f" | The letters. |
| backgroundColor | string | "#ebe8e1" | The surface behind the headline; transparent shows the page through. |
| accentColor | string | "#d4ff3a" | The hold cursor’s disc and the ring that fills during a rep. |
| accentTextColor | string | "#12120f" | The label on the hold cursor. |
| Prop | Type | Default | Description |
|---|---|---|---|
| lines | string[] | ["Stronger","together."] | The headline’s lines, top to bottom. Lines of similar length look best: each is set edge to edge. |
| uppercase | boolean | true | Sets everything in capitals. |
| font | FontValue | {"fontFamily":"Anybody"} | The headline’s family. It needs a width axis (Anybody, Archivo, Roboto Flex, Saira) to set each line edge to edge; without one the letters are scaled across instead. The component doesn’t load the font: add it to your app with its width axis. |
| cursorFont | FontValue | {"fontFamily":"Geist Mono","fontWeight":500} | The hold cursor’s family and weight. The component doesn’t load the font: add it to your app. |
| holdLabel | string | "Hold" | The hold cursor’s label at rest. |
| liftLabel | string | "Lift" | The hold cursor’s label during a rep. |
| Prop | Type | Default | Description |
|---|---|---|---|
| weight | number | 640 | Weight of the letters at rest. |
| flexWeight | number | 900 | Weight of a letter under the cursor or at the top of a rep. |
| width | number | 74 | Width-axis value of the longest line at rest; lower sets narrower, taller type and the shorter lines widen to match. |
| maxSize | number | 248 | The largest font size; below it the type follows the width. |
| lineHeight | number | 0.84 | Line spacing of the headline. |
| padding | number | 40 | Space around the type. |
| radius | number | 28 | Corner radius of the surface. |
| hoverFlex | boolean | true | Letters near a mouse or trackpad pointer flex heavier and narrower. |
| reach | number | 1.15 | Radius of the cursor’s pull, in line heights. |
| follow | number | 16 | How quickly letters answer the cursor; lower feels heavier. |
| squeeze | number | 16 | How much a flexed letter narrows, in width-axis units; 0 keeps its width. |
| stretch | number | 12 | How much taller a flexed letter grows. |
| hold | boolean | true | Pressing and holding the type does a rep: a wave of strain along the letters that drops with a bounce. |
| holdTime | number | 1100 | How long a rep takes to hold. |
| holdStagger | number | 22 | Time the strain takes to travel from one letter to the next. |
| tremble | number | 1.8 | Shake at full strain; 0 turns it off. |
| cursorSize | number | 84 | Diameter of the hold cursor. |
| entrance | boolean | true | Letters rise out of the baseline the first time the headline is seen; off starts it at rest. |
| entranceDelay | number | 250 | Time before the first letter rises. |
| entranceStagger | number | 32 | Time between one letter and the next. |
| entranceDuration | number | 900 | How long each letter takes to rise. |
A
Motion score
Main-thread composite
- Category
- Text Effects
- Framework
- React
- Published
- Nov 27, 2026
- Dependencies
- Variants
Flex Headline
A full-width headline set edge to edge by the font’s width axis, every line stretched or narrowed to fill the row. Its letters rise out of the baseline when first seen and flex heavier and narrower around the cursor; press and hold the type to do a rep, a wave of strain that runs along the letters, shakes them and drops with a bounce. The lines, font, colors, weights, flex and timings can all be set.