packages/docs/docs/rough-notation/box.mdx
Draws an animated hand-drawn box around the text or element it wraps.
import {Box} from '@remotion/rough-notation';
export const MyComp: React.FC = () => {
return (
<Box
progress={1}
color="#fe0000"
strokeWidth={8}
iterations={1}
roughness={0.9}
padding={{left: 3, right: 6, top: -12, bottom: -5}}
>
box
</Box>
);
};
strokeWidth?The stroke width in pixels. Default: 7.
iterations?The number of rough strokes to draw. Default: 2.
padding?Insets or outsets for the box. Accepts left, right, top and bottom.
Also accepts the common annotation props.