Back to Remotion

Bracket

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

4.0.5091.3 KB
Original Source

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

Draws animated hand-drawn brackets around the text or element it wraps.

Example

<Demo type="rough-notation-bracket" />
tsx
import {Bracket} from '@remotion/rough-notation';

export const MyComp: React.FC = () => {
  return (
    <Bracket
      progress={1}
      color="#dc2626"
      strokeWidth={8}
      roughness={1}
      bowing={3}
      bracketLeft
      bracketRight
      bracketTop
      bracketBottom
      padding={{top: -11}}
    >
      this
    </Bracket>
  );
};

API

strokeWidth?

The stroke width in pixels. Default: 20.

padding?

Insets or outsets for the complete bracket. Accepts left, right, top and bottom.

bracketLeft?

Draws the left bracket. Default: false.

bracketRight?

Draws the right bracket. Default: true.

bracketTop?

Draws the top bracket. Default: false.

bracketBottom?

Draws the bottom bracket. Default: false.

Also accepts the common annotation props.

Compatibility

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

See also