Docs·Signature

Signature

Animated SVG signature that traces text with OpenType.js paths and Motion stroke reveals.

Installation

$pnpm dlx shadcn@latest add @spiderui/signature

Place LastoriaBoldRegular.otf in your public directory, or pass a custom path via fontUrl.

Download LastoriaBoldRegular.otf

Usage

API Reference

PropTypeDefault
textText converted into handwriting paths.
string"Signature"
colorStroke and fill color. Omit to inherit theme foreground via currentColor.
string—
fontSizeFont size used while converting glyphs to paths.
number14
durationAnimation duration in seconds for each character.
number1.5
delayDelay before the first character starts animating.
number0
classNameAdditional classes on the SVG element.
string—
inViewAnimate only when the element enters the viewport.
booleanfalse
oncePlay the in-view animation only once.
booleantrue
fontUrlCustom font URL. Defaults to /LastoriaBoldRegular.otf.
string—

Click on the icon in the top right of the example preview to view the source code for specific variants.

Keep in mind

This component is inspired by various open-source projects and patterns. Please verify licenses and implementation details before using in production.

Have any questions?
Contact on@ctrlcat0x
import { Signature } from "@/components/ui/signature"
export default function Page() {
  return <Signature text="Spider UI" fontSize={48} />
}