Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: typewritter

dev_wandry3b0190956ab4
diff --git a/content/docs/typography/typewriter.mdx b/content/docs/typography/typewriter.mdx
index ec5f0e34..ad79883e 100644
--- a/content/docs/typography/typewriter.mdx
+++ b/content/docs/typography/typewriter.mdx
@@ -17,7 +17,7 @@ import { Composition } from "remotion";
import { Typewriter } from "@/components/remocn/typewriter";
const TypewriterScene = () => (
- <Typewriter text="Hello, world" speed={20} fontSize={72} />
+ <Typewriter text="Hello, world" charsPerSecond={22} fontSize={72} />
);
export const RemotionRoot = () => (
@@ -49,9 +49,9 @@ export const RemotionRoot = () => (
description: "Whether to render the blinking cursor at the end",
},
{
- name: "speed",
+ name: "charsPerSecond",
type: "number",
- default: "20",
+ default: "22",
description: "Typing speed in characters per second",
},
{
diff --git a/registry/remocn/typewriter/config.ts b/registry/remocn/typewriter/config.ts
index 1f34bd1d..c26b8b47 100644
--- a/registry/remocn/typewriter/config.ts
+++ b/registry/remocn/typewriter/config.ts
@@ -18,7 +18,7 @@ export const typewriterConfig: ComponentConfig = {
cursor: { type: "boolean", default: true, label: "Show cursor" },
charsPerSecond: {
type: "number",
- default: 20,
+ default: 22,
min: 4,
max: 60,
step: 1,
diff --git a/registry/remocn/typewriter/index.tsx b/registry/remocn/typewriter/index.tsx
index 5faacdb1..aa119a80 100644
--- a/registry/remocn/typewriter/index.tsx
+++ b/registry/remocn/typewriter/index.tsx
@@ -18,7 +18,7 @@ export interface TypewriterProps {
export function Typewriter({
text,
cursor = true,
- charsPerSecond = 20,
+ charsPerSecond = 22,
speed = 1,
fontSize = 48,
color = "#171717",