things to consider

customizable props:

Component API

TextHighlight

Prop Type Default Description
children string The text content to be animated.
as keyof JSX.IntrinsicElements 'p' The HTML tag to render, defaults to paragraph.
duration number 0.8 Duration of the effect.
speed number 0.04 Speed of the effect.
textColor
highlightColor
className string undefined Optional CSS class for styling the component.
trigger boolean undefined Controls whether the animation should be triggered.