Skip to content

Text Stroke Draw

Pro

The outline of a heading draws itself in the real font, then the letters fill with color.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 14, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Text Stroke Draw needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
16
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Wrap the text of a heading. Draw the next line with delay.

The sample also uses Button. One command adds them with this item:

studio-hero.tsx

TextStrokeDraw

<span>
PropTypeDefaultDescription
localestring—The BCP 47 locale for the letter and word split (Intl.Segmenter). Default: the DisplayLocaleProvider locale, else "en-US".
childrenRequiredstring—The text: a heading, a word, a logo. It wraps between words, as plain text does.
trigger"mount""view""view"When the outline draws: view (default) the first time it is on screen, mount at once.
delaynumber0Seconds to wait before it draws. Default 0.
fillbooleantrueFill the letters after the outline is drawn. Default true; false keeps the outline only.
strokeWidthnumber1.5The outline width in px. Default 1.5.
onComplete—Called when the outline (and the fill) are done.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.
  • Use it on a large heading or a wordmark: the outline reads best at 36px and larger.
  • Use delay to draw a second line after the first.
  • Use fill={false} to keep the outline as a line drawing.
  • Use strokeWidth for a thinner or bolder outline; the color comes from the text color.
Draw
draw · 900ms · the outline of every letter draws at the same time, from its start to its end
Fill
reveal · 400ms · after the draw, the fill fades in as the outline fades out; `fill={false}` keeps the outline
Start
instant · the text shows after `delay` seconds, at mount or the first time it is in view
  1. AddedText Stroke Draw.
Open the release