Social Safe Zones

social-safe-zones.tsximportReact from 'react'; import {CanvasImage ,Interactive , typeInteractiveTransformProps , typeInteractivitySchema , } from 'remotion'; typeSocialSafeZonesProps =InteractiveTransformProps & { readonlyplatform ?: 'instagram' | 'tiktok'; }; constsocialSafeZonesSchema = {platform : {type : 'enum',default : 'instagram',description : 'Platform',keyframable : false,variants : {tiktok : {}, }, }, } asconst satisfiesInteractivitySchema ; constSocialSafeZonesInner :React .FC <SocialSafeZonesProps > = ({platform = 'instagram',style , }) => { return ( <div style ={{ ...style ,height : 1920,left : 0,pointerEvents : 'none',position : 'absolute',top : 0,width : 1080,zIndex : 2147483647, }} > <CanvasImage aria-hidden ="true"fit ="cover"height ={1920}name ="Background"src ="https://remotion.media/elements/commerce-tear-a-graphic.png"style ={{height : '100%',left : 0,position : 'absolute',top : 0,width : '100%', }}width ={1080} /> <CanvasImage aria-hidden ="true"fit ="contain"height ={1920}showInTimeline ={false}src ={platform === 'tiktok' ? 'https://remotion.media/elements/social-safe-zones/tiktok-interface.png' : 'https://remotion.media/elements/social-safe-zones/instagram-reels-interface-v3.png' }style ={{height : '100%',left : 0,position : 'absolute',top : 0,width : '100%', }}width ={1080} /> </div > ); }; export constSocialSafeZones =Interactive .withSchema ({Component :SocialSafeZonesInner ,componentName : '<SocialSafeZones>',schema :socialSafeZonesSchema ,wrapInSequence : true, });
Accuracy
The presets were measured at 9:16 from representative iOS captures of full-green videos in TikTok and Instagram Reels. The interface references are transparent images extracted from those captures, rather than redrawn approximations. Author-specific text and avatars were replaced with generic content. The Element has fixed 1080 × 1920 dimensions to preserve the calibrated geometry.
Live interfaces can vary by device, app version, locale, account state, caption length, and placement. Treat the clear region as a capture-calibrated reference, not a guarantee from either platform. The guide is rendered like any other Element, so hide or remove it when it should not appear in the final video.