Back to Remotion

Underline

packages/docs/docs/rough-notation/underline.mdx

4.0.5131.1 KB
Original Source

<Underline><AvailableFrom v="4.0.490" />

Draws an animated hand-drawn underline below the text or element it wraps.

Example

<Demo type="rough-notation-underline" />
tsx
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>
  );
};

API

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.

Compatibility

<CompatibilityTable chrome firefox safari nodejs="" bun="" serverlessFunctions="" clientSideRendering serverSideRendering player studio hideServers />

See also