Put each line in a Fit Text Line part.
hero-title.tsx
TextFit
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| locale | string | — | The BCP 47 locale for the letter and word split (Intl.Segmenter). Default: the DisplayLocaleProvider locale, else "en-US". |
| children | ReactNode | — | The lines: TextFitLine parts, or a string with one line per \n. |
| max | number | Number.POSITIVE_INFINITY | The largest font size of a line, in px, so a short word does not grow without end. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextFitLine
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — | The text of the line. It never wraps. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |





