0Views
0Copies
Variants
Loading preview...
API Reference
Props for <EditableHeadline />
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#ffffff" | The letters, and the edit bar's label and borders. |
| accentColor | string | "#c6f432" | The highlighted word, the edit frame, its tags, the Done button and the caret. Picking a swatch replaces it. |
| accentTextColor | string | "#0b0d05" | The hover tag, the size readout and the Done label. |
| backgroundColor | string | "#080909" | The surface behind the headline; transparent shows the page through. |
| panelColor | string | "#141515" | The bar with the swatches above the frame. |
| handleColor | string | "#ffffff" | The fill of the frame's resize handles. |
| swatches | string[] | ["#c6f432","#a78bfa","#5ccbff","#ff7a59","#ff6fb5"] | The colours offered in the edit bar; none hides the swatches. |
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | "ALEX\nCARTER\nSTUDIO" | The headline, one word per line reads best. A line typed on its own is re-stacked one word per line when the edit ends. |
| highlightWord | number | 2 | Which word takes the accent, counted across the lines; 0 for none. |
| highlightStyle | 'color' | 'marker' | 'underline' | "color" | How the highlighted word stands out: in the accent colour, on an accent marker, or with a thick accent underline. |
| align | 'left' | 'center' | 'right' | "left" | Which side the lines line up on. |
| uppercase | boolean | true | Sets the headline in capitals and keeps what is typed in capitals. |
| font | FontValue | {"fontFamily":"Archivo","fontWeight":900,"fontSize":94,"lineHeight":0.92,"letterSpacing":"-0.012em"} | The headline's type. The size is the largest it gets; it shrinks to fit narrower containers. The component doesn't load the font: add it to your app (Archivo with its width axis). |
| fillLabel | string | "Text fill" | The edit bar's label before the swatches; hidden on phones. |
| doneLabel | string | "Done" | The button that ends the edit. |
| hoverLabel | string | "Click to edit" | The tag over the headline on hover; empty shows only the outline. |
| Prop | Type | Default | Description |
|---|---|---|---|
| stretch | number | 125 | How wide the letters are, 100 is normal. Uses the font's width axis when it has one (Archivo runs to 125); otherwise the letters are scaled across. |
| padding | number | 72 | Surface around the headline. Keep about 72 above it for the edit bar; the sides shrink on narrow screens. |
| radius | number | 16 | Corner radius of the surface. |
| snap | 'smooth' | 'bouncy' | 'instant' | "smooth" | How the edit frame springs from the click onto the text, and how the swatch ring slides between colours. |
| Prop | Type | Default | Description |
|---|---|---|---|
| editable | boolean | true | Lets visitors click the headline to retype and recolour it; off leaves a plain headline. |
| showSize | boolean | true | Shows the frame's width × height under it while editing. |
| Prop | Type | Default | Description |
|---|---|---|---|
| maxLines | number | 4 | Most lines a visitor can type. |
| maxLength | number | 40 | Most characters a visitor can type. |
| tag | 'h1' | 'h2' | 'h3' | 'p' | "h1" | The element the headline is, for the page's outline. |
| Prop | Type | Default | Description |
|---|---|---|---|
| onTextChange | (text: string) => void | — | Called with the new text when an edit ends. |
| onAccentChange | (color: string) => void | — | Called with the colour picked from the swatches. |
B
Motion score
Measure before composite
- Category
- Text Effects
- Framework
- React
- Published
- Nov 27, 2026
- Dependencies
- Variants
Editable Headline
A big stacked headline that visitors can retype in place, like a text layer in a design tool. Hovering outlines it; a click launches a selection frame from the pointer that springs around the text with handles, a live size readout and an edit bar whose swatches recolour the highlighted word. The text, highlighted word, type, colours, swatches, labels and snap can all be set.