packages/docs/docs/rough-notation/underline.mdx
Draws an animated hand-drawn underline below the text or element it wraps.
import {Underline} from '@remotion/rough-notation';
export const MyComp: React.FC = () => {
return (
<Underline
progress={1}
color="rgba(53, 95, 143, 0.71)"
strokeWidth={10}
iterations={3}
>
this
</Underline>
);
};
strokeWidth?The stroke width in pixels. Default: 20.
iterations?The number of rough strokes to draw. Default: 2.
padding?Accepts a top value to move the underline down from the text.
rtl?Draws the underline right-to-left. Default: false.
Also accepts the common annotation props.