Skip to Content
šŸŽ‰Introducing Pumki UI
ComponentsTextDraw Line Text

Draw Line Text Animation

A smooth text effect that draws characters as strokes and fills them in, perfect for headers and highlights.

Perfect for headers and highlights.
Pumki UIPumki UI
Ansh Singh Snkhia

Installation

Usage


1import { DrawLineText } from '@/components/pumki-ui/text/draw-line-text';

1<DrawLineText
2 className="font-medium"
3 fontSize={60}
4 strokeWidth={1.5}
5 text="Ansh Singh Snkhia"
6 color="var(--color-foreground)"
7 />

Examples

At once

Set `oneByOne` to `false` to animate all characters together without any stagger.

Pumki UIPumki UI
Ansh Singh Sonkhia

Props

PropTypeDefaultDescription
textstring-Text to display
afterFillbooleantrueShow fill after stroke
oneByOnebooleantrueAnimate letters one by one
fontSizenumber40Font size in px
wordSpacingnumber10Space between words
strokeWidthnumber1Stroke width in px
letterSpacingnumber0Space between letters
colorstring-Text color
Last updated on