Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
fix: ink underline
kapishdima9d4a563aef4b
diff --git a/components/docs/examples/ink-underline-example.tsx b/components/docs/examples/ink-underline-example.tsxindex 727b7e26..44e6e44d 100644--- a/components/docs/examples/ink-underline-example.tsx+++ b/components/docs/examples/ink-underline-example.tsx@@ -6,6 +6,11 @@ import { InkUnderline } from "@/registry/remocn/ink-underline";const URL_TEXT = "remocn.dev";+const captionMetrics = (width: number) => {+ const fontSize = Math.round(width * 0.152);+ return { fontSize, height: Math.round(fontSize * 1.5) };+};+export function InkUnderlineExampleScene({width = 420,color,@@ -22,6 +27,7 @@ export function InkUnderlineExampleScene({step?: number;}) {const written = handwriteDuration(URL_TEXT, { step });+ const { fontSize, height } = captionMetrics(width);return (<AbsoluteFill@@ -32,8 +38,8 @@ export function InkUnderlineExampleScene({gap: 4,}}>- <div style={{ position: "relative", width, height: 96 }}>- <Handwrite text={URL_TEXT} fontSize={64} step={step} />+ <div style={{ position: "relative", width, height }}>+ <Handwrite text={URL_TEXT} fontSize={fontSize} step={step} /></div><InkUnderlinewidth={width}@@ -57,6 +63,7 @@ export const inkUnderlineExampleCode = (const durationSteps = (values.durationSteps as number) ?? 5;const seed = (values.seed as string) ?? "ink";const step = (values.step as number) ?? 3;+ const { fontSize, height } = captionMetrics(width);return `import { AbsoluteFill } from "remotion";import { Handwrite, handwriteDuration } from "@/components/remocn/handwrite";import { InkUnderline } from "@/components/remocn/ink-underline";@@ -67,8 +74,8 @@ export const MyScene = () => (<AbsoluteFillstyle={{ alignItems: "center", justifyContent: "center", flexDirection: "column", gap: 4 }}>- <div style={{ position: "relative", width: ${width}, height: 96 }}>- <Handwrite text={url} fontSize={64} step={${step}} />+ <div style={{ position: "relative", width: ${width}, height: ${height} }}>+ <Handwrite text={url} fontSize={${fontSize}} step={${step}} /></div><InkUnderlinewidth={${width}}diff --git a/registry/remocn/ink-underline/config.ts b/registry/remocn/ink-underline/config.tsindex 05f85bc4..166b8421 100644--- a/registry/remocn/ink-underline/config.ts+++ b/registry/remocn/ink-underline/config.ts@@ -41,7 +41,7 @@ export const inkUnderlineConfig: ComponentConfig = {},},snippet: inkUnderlineExampleCode,- durationInFrames: 60,+ durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,