Toggle Sidebar B
AppearanceLight & dark mode D

Gradient Text

Animated gradient sweep across live text with speed and color control.

Default

Every prop is wired to the controls underneath. Change the number of colors, then edit each stop.

Light previewReplay previewOpen in new tab
Gradient Magic

Customize

Color 1
Color 2
Color 3
Color Count3
Animation Speed8s
Direction

API Reference

GradientText

PropTypeDefaultDescription
default slotVNode-The content to be displayed inside the gradient text.
colorsstring[]["#5227FF", "#FF9FFC", "#B497CF"]Array of colors for the gradient effect.
animationSpeednumber8Duration of one animation cycle in seconds.
direction'horizontal' | 'vertical' | 'diagonal''horizontal'Direction of the gradient animation.
pauseOnHoverbooleanfalsePauses the animation when hovering over the text.
yoyobooleantrueReverses animation direction at the end instead of looping.
showBorderbooleanfalseDisplays a gradient border around the text.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • The text stays real text, so it is selectable and read by screen readers. Pick colors with enough contrast against the background.