BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/snap-cn/karaoke-captions

Karaoke Captions

snap-cn/karaoke-captions
FreeComponent

A caption line that fills word by word as it is spoken — heavy outlined type that reads on any footage. Three presets: karaoke, highlight (the word rides an accent bar), clean.

Install it

npx shadcn@latest add https://snapcn.dev/r/karaoke-captions.json

Source

registry/snap-cn/karaoke-captions/index.tsxsnapcn.dev/r/karaoke-captions.json · first 6 KB
1"use client";
2
3import { loadFont } from "@remotion/google-fonts/Montserrat";
4import { loadFont as loadRoboto } from "@remotion/google-fonts/Roboto";
5import { useEffect, useLayoutEffect, useRef, useState } from "react";
6import {
7 continueRender,
8 delayRender,
9 Easing,
10 getRemotionEnvironment,
11 interpolate,
12 useCurrentFrame,
13 useVideoConfig,
14} from "remotion";
15import { type SnapCnTheme, useSnapCnTheme, withAlpha } from "@/lib/snap-cn-ui";
16
17// The face the look is made of. Inter at 600 is a subtitle; a caption is a heavy
18// geometric grotesque carrying an outline.
19const { fontFamily: MONTSERRAT, waitUntilDone: montserratReady } = loadFont(
20 "normal",
21 {
22 weights: ["700", "800", "900"],
23 subsets: ["latin"],
24 },
25);
26
27// The `boxed` look is the YouTube auto-caption, which is set in Roboto — a
28// neutral grotesque, not a geometric one.
29const { fontFamily: ROBOTO } = loadRoboto("normal", {
30 weights: ["500", "700"],
31 subsets: ["latin"],
32});
33
34export type CaptionTheme = "light" | "dark";
35export type SafeAreaPreset = "landscape" | "portrait" | "square";
36
37export interface CaptionLine {
38 text: string;
39 /** First frame the line is on screen and the fill sweep begins. */
40 startFrame: number;
41 /** Frame the sweep completes; the line fades out shortly after. */
42 endFrame: number;
43 /**
44 * Absolute frame each word starts filling (one entry per word).
45 * Omitted → words are spread evenly across [startFrame, endFrame].
46 */
47 wordTimings?: number[];
48 /** Word indices rendered in the accent color with a subtle scale-up. */
49 emphasize?: number[];
50}
51
52export interface KaraokeCaptionsProps {
53 /**
54 * Word-level captions in MILLISECONDS — the shape Whisper, CapCut and Remotion's
55 * own `@remotion/captions` all speak. This is the input you will actually have.
56 */
57 captions?: Caption[];
58 /** An .srt, pasted straight in. */
59 srt?: string;
60 /** The look. See {@link KaraokePreset}. */
61 preset?: KaraokePreset;
62 /** Outline width as a fraction of the font size. 0 turns it off. */
63 strokeRatio?: number;
64 strokeColor?: string;
65 uppercase?: boolean;
66 /** Timed caption lines. Omit to build a single line from `text`. */
67 lines?: CaptionLine[];
68 /** Convenience single line used when `lines` is not provided. */
69 text?: string;
70 /** Comma-separated words of `text` to emphasize (case-insensitive). */
71 emphasize?: string;
72 /** Design-system token overrides. */
73 theme?: Partial<SnapCnTheme>;
74 /** Light or dark pill chrome. */
75// … truncated

What it pulls in

npm packages

  • remotion
  • @remotion/google-fonts

Other registry items

  • https://snapcn.dev/r/snap-cn-ui.json

Files it writes

  • registry/snap-cn/karaoke-captions/index.tsx

Facts

Registry
snap-cn
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

snapcn.dev Raw registry item This item as JSON

More from snap-cn

All 24 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Answer Streamanswer-streamsnap-cnComponentsFree2 deps
UI Caretcaretsnap-cnComponentsFree1 dep
Follower Rushfollower-rushsnap-cnComponentsFree2 deps
Product Herohero-launchsnap-cnComponentsFree2 deps
UI Inputinputsnap-cnComponentsFree2 deps · 2 files
Laptop Framelaptop-framesnap-cnComponentsFree1 dep
Logo Assemblelogo-assemblesnap-cnComponentsFree1 dep
Logo Flickerlogo-flickersnap-cnComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex