<StrikeThrough>v4.0.490
Draws an animated hand-drawn line through the text or element it wraps.
Example
MyComp.tsximport {StrikeThrough } from '@remotion/rough-notation'; export constMyComp :React .FC = () => { return ( <StrikeThrough progress ={1}color ="#f11515"strokeWidth ={14}> forbidden </StrikeThrough > ); };
API
strokeWidth?
The stroke width in pixels. Default: 20.
iterations?
The number of rough strokes to draw. Default: 1.
rtl?
Draws the line right-to-left. Default: false.
Also accepts the common annotation props.
Compatibility
| Browsers | Environments | |||||
|---|---|---|---|---|---|---|
Chrome | Firefox | Safari | ||||