{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "tracking-in",
  "type": "registry:component",
  "title": "TrackingIn",
  "description": "Text begins spread wide and contracts to its resting letter-spacing on the house spring, fading and sharpening from a soft blur as it settles. A cinematic title entrance with no overshoot.",
  "dependencies": [
    "remotion",
    "zod",
    "react"
  ],
  "registryDependencies": [
    "lib-canvas",
    "lib-motion"
  ],
  "files": [
    {
      "path": "registry/components/tracking-in/TrackingIn.tsx",
      "type": "registry:component",
      "target": "components/onda/tracking-in/TrackingIn.tsx",
      "content": "import React from 'react';\nimport { useCurrentFrame, useVideoConfig, interpolate, spring } from 'remotion';\nimport { SPRING_SMOOTH } from '../../../lib/motion';\nimport { PlacementBox, resolveSize } from '../../../lib/canvas';\nimport { trackingInSchema, type TrackingInProps } from './schema';\n\nexport { trackingInSchema, type TrackingInProps };\n\n/**\n * The text begins spread wide and contracts to its resting tracking on the\n * house spring, fading (and optionally sharpening from a soft blur) as it\n * settles. A confident, cinematic title entrance — no overshoot.\n *\n * @example\n * <TrackingIn text=\"ONDA\" />\n */\nexport const TrackingIn: React.FC<TrackingInProps> = ({\n  text, delay, duration, color, fromTracking, tracking, blur,\n  fontSize, size, fontFamily, fontWeight, lineHeight, align, placement,\n}) => {\n  const frame = useCurrentFrame();\n  const { fps, width, height } = useVideoConfig();\n  const local = Math.max(0, frame - delay);\n  const resolvedFontSize = size ? resolveSize(size, { width, height }) : fontSize;\n\n  const progress = spring({ frame: local, fps, config: SPRING_SMOOTH, durationInFrames: duration });\n  const opacity = interpolate(progress, [0, 1], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });\n  const ls = interpolate(progress, [0, 1], [fromTracking, tracking], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });\n  const blurPx = blur ? interpolate(progress, [0, 1], [8, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' }) : 0;\n\n  return (\n    <PlacementBox placement={placement}>\n      <div\n        style={{\n          opacity,\n          color,\n          fontSize: resolvedFontSize,\n          fontFamily,\n          fontWeight,\n          lineHeight,\n          textAlign: align,\n          letterSpacing: `${ls}em`,\n          filter: blurPx ? `blur(${blurPx}px)` : undefined,\n        }}\n      >\n        {text}\n      </div>\n    </PlacementBox>\n  );\n};\n"
    },
    {
      "path": "registry/components/tracking-in/schema.ts",
      "type": "registry:component",
      "target": "components/onda/tracking-in/schema.ts",
      "content": "import { z } from 'zod';\nimport { DURATION } from '../../../lib/motion';\nimport { placementSchema, sizeRoleSchema } from '../../../lib/canvas-schemas';\n\n/** Zod schema for {@link TrackingIn} props. */\nexport const trackingInSchema = z.object({\n  /** Discriminator literal — matches this entry's registry slug. Auto-populated when omitted. */\n  kind: z.literal('tracking-in').default('tracking-in'),\n  /** The text to settle in. */\n  text: z.string().default('Onda'),\n  /** Frames before the entrance starts. */\n  delay: z.number().int().min(0).default(0),\n  /** Frames until the text settles. */\n  duration: z.number().int().min(1).default(DURATION.slow),\n  /** Text color. Defaults to `--onda-text`. */\n  color: z.string().default('var(--onda-text, #F2F2F4)'),\n  /** Starting letter-spacing in em — the text begins spread wide and contracts. */\n  fromTracking: z.number().default(0.5),\n  /** Resting letter-spacing in em. */\n  tracking: z.number().default(-0.02),\n  /** Start the text slightly blurred and sharpen as it settles. */\n  blur: z.boolean().default(true),\n  /** Pixels. Wins over `size` if both are passed. */\n  fontSize: z.number().default(96),\n  /** Semantic typography role — canvas-aware pixels. */\n  size: sizeRoleSchema.optional(),\n  /** Onda display font. Never default to Inter / Arial / system. */\n  fontFamily: z.string().default('var(--onda-font-display, \"Clash Display\", sans-serif)'),\n  /** Font weight. */\n  fontWeight: z.number().default(600),\n  /** Unitless line height. */\n  lineHeight: z.number().default(1.1),\n  /** Text alignment. */\n  align: z.enum(['left', 'center', 'right']).default('center'),\n  /** Where on the canvas this sits. */\n  placement: placementSchema.optional(),\n});\n\n/** Inferred props for {@link TrackingIn}. */\nexport type TrackingInProps = z.infer<typeof trackingInSchema>;\n"
    },
    {
      "path": "registry/components/tracking-in/tracking-in.meta.json",
      "type": "registry:file",
      "target": "components/onda/tracking-in/tracking-in.meta.json",
      "content": "{\n  \"name\": \"tracking-in\",\n  \"title\": \"TrackingIn\",\n  \"description\": \"Text begins spread wide and contracts to its resting letter-spacing on the house spring, fading and sharpening from a soft blur as it settles. A cinematic title entrance with no overshoot.\",\n  \"pickWhen\": \"a cinematic title beat where the type itself is the moment. Do not combine with another entrance on the same line.\",\n  \"category\": \"entrances\",\n  \"tags\": [\n    \"text\",\n    \"entrance\",\n    \"tracking\",\n    \"letter-spacing\",\n    \"title\"\n  ],\n  \"dependencies\": [\n    \"remotion\",\n    \"zod\",\n    \"react\"\n  ]\n}\n"
    },
    {
      "path": "registry/components/tracking-in/README.md",
      "type": "registry:file",
      "target": "components/onda/tracking-in/README.md",
      "content": "# TrackingIn\n\nThe text begins spread wide and contracts to its resting tracking on the house spring, fading — and optionally sharpening from a soft blur — as it settles. A confident, cinematic title entrance with no overshoot. Best on short, uppercase display copy.\n\n## Props\n\n| Prop | Type | Default | Notes |\n| --- | --- | --- | --- |\n| `text` | `string` | `\"Onda\"` | The text to settle in. |\n| `delay` | `number` | `0` | Frames before the entrance. |\n| `duration` | `number` | `24` | Frames until settled. |\n| `color` | `string` | `#F2F2F4` | Text color. |\n| `fromTracking` | `number` (em) | `0.5` | Starting letter-spacing. |\n| `tracking` | `number` (em) | `-0.02` | Resting letter-spacing. |\n| `blur` | `boolean` | `true` | Sharpen from a soft blur. |\n| `fontSize` / `size` | `number` / role | `96` | Explicit px or canvas-aware role. |\n| `fontFamily`, `fontWeight`, `lineHeight`, `align` | — | display defaults | Typography vocabulary. |\n| `placement` | region or `{x,y,anchor}` | — | Canvas placement. |\n\n## Usage\n\n```tsx\nimport { TrackingIn } from './components/onda/tracking-in/TrackingIn';\n\nexport const TitleScene = () => (\n  <TrackingIn text=\"ONDA\" placement=\"center\" />\n);\n```\n"
    }
  ]
}
