Put the heading in the Content part and the Canvas after it.
golden-heading.tsx
TextCastShadow
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | A string, or the parts TextCastShadowContent and TextCastShadowCanvas. |
| angle | number | 45 | The direction the shadow falls with no mouse, in degrees clockwise from the right: 0 right, 90 down. Default 45 (a sun at the top left). |
| length | number | 0.6 | The longest shadow, in em of the text. Default 0.6. The canvas reaches this far around it. |
| follow | boolean | true | True (default): a mouse anywhere on the page is the light, and a closer light throws a longer shadow. Arrow keys turn the light from the keyboard. False: a fixed sun at angle. |
| locale | string | — | The BCP 47 locale of the text, for the case of text-transform on the canvas. Default: the DisplayLocaleProvider locale, else "en-US". |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextCastShadowContent
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextCastShadowCanvas
<canvas>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <canvas> attributes | — | Every other attribute goes to the <canvas>, with a ref. |
| ArrowLeft / ArrowUp | Turns the light 15° back. |
|---|---|
| ArrowRight / ArrowDown | Turns the light 15° on. |
| Home | Puts the light back at angle. |









