Props

Calligraph also passes any other span prop to its wrapper.

PropDefault
childrenThe string or number to show.
variant"text""text" for character diffing, "number" for rolling vertical digits and "slots" for a slot-machine digit spin.
animation"default", or "snappy" for numberThe timing: "default", "smooth", "snappy" or "bouncy". See Animations.
as"span"The wrapper element.
drift{ x: 15, y: 0 }The most entering and exiting characters spread, in pixels, scaled by the share of characters that changed. Only for "text".
trend0The vertical direction characters enter from: 1 from below, -1 from above and 0 neither. Only for "text".
stagger0.02Seconds of delay spread across the characters.
initialfalseAnimates the characters in on first mount.
onCompleteCalled when the last character finishes animating.
autoSizetrueAnimates the wrapper's width to fit the content.