Skip to content

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

feat: separate registry, use registry include

dev_wandrya86c966143c5
diff --git a/components/docs/component-preview.tsx b/components/docs/component-preview.tsx
index 6c8e997b..4a5c83f1 100644
--- a/components/docs/component-preview.tsx
+++ b/components/docs/component-preview.tsx
@@ -297,6 +297,7 @@ function PreviewStage({
}
function generateCode(config: ComponentConfig, props: Record<string, unknown>) {
+ if (config.snippet) return config.snippet(props);
const propsString = Object.entries(props)
.map(([k, v]) => {
if (typeof v === "string") return ` ${k}="${v}"`;
diff --git a/content/docs/ui/button.mdx b/content/docs/ui/button.mdx
new file mode 100644
index 00000000..70c14606
--- /dev/null
+++ b/content/docs/ui/button.mdx
@@ -0,0 +1,136 @@
+---
+title: Button
+description: A scripted button that animates hover, press, loading, and success states as a pure function of the Remotion timeline
+---
+
+<ComponentPreview name="button" />
+
+## Installation
+
+<InstallBlock name="button" />
+
+<Note>
+Installing `button` automatically installs the shared `remocn-ui` core (`lib/remocn-ui/`) and its `culori` color dependency via `registryDependencies`. You do not need to install either separately.
+</Note>
+
+## The steps timeline
+
+`Button` accepts a `steps` prop — an array of `Step<ButtonAction>` objects that script the button's interaction. The full `ButtonAction` union is:
+
+```ts
+type ButtonAction =
+ | "hover" // lift + background crossfade
+ | "press" // scale down + darken
+ | "release" // return to hover level
+ | "loading" // label fades out, spinner fades in
+ | "success" // spinner fades out, checkmark draws
+ | "reset" // destructive flash, then return to idle
+```
+
+A realistic happy-path interaction — hover, click, load, succeed:
+
+```tsx
+import { Button } from "@/components/remocn/button";
+
+export const Scene = () => (
+ <Button
+ label="Continue"
+ steps={[
+ { at: 10, action: "hover" },
+ { at: 25, action: "press" },
+ { at: 35, action: "loading" },
+ { at: 70, action: "success" },
+ ]}
+ />
+);
+```
+
+Each `at` value is a **Sequence-local authored frame**. If the component sits inside a `<Sequence from={30}>`, Remotion shifts the playhead automatically — `at: 10` always means "10 frames into this Sequence." See the [ui tier intro](/docs/ui) for how `useTimelineState` resolves the fold.
+
+### Single-action shortcut
+
+For a quick loading spinner or a one-step hover, pass a single step:
+
+```tsx
+// Spinner only — no label
+<Button label="Save" steps={[{ at: 0, action: "loading" }]} />
+
+// Hover state held for the full duration
+<Button label="Sign up" steps={[{ at: 5, action: "hover" }]} />
+```
+
+### Using a preset scenario
+
+The `scenario` prop is a preview-convenience alias for a fixed `steps` array. It exists so the live preview customizer can switch between canned interactions without the user manually editing step objects. In production compositions, prefer explicit `steps`.
+
+| Scenario | Equivalent steps |
+|---|---|
+| `"happy"` | hover→press→loading→success |
+| `"loading"` | loading (at 10) |
+| `"error"` | hover→press→loading→reset |
+| `"idle"` | `[]` (static button) |
+
+```tsx
+// Fine for quick previews; prefer steps={[...]} in real compositions
+<Button scenario="happy" />
+```
+
+When both `steps` and `scenario` are supplied, `steps` wins.
+
+## Props
+
+<PropsTable
+ rows={[
+ {
+ name: "label",
+ type: "string",
+ default: "\"Continue\"",
+ description: "Button label text. Hidden during loading and success states.",
+ },
+ {
+ name: "variant",
+ type: "\"default\" | \"secondary\" | \"destructive\" | \"outline\" | \"ghost\"",
+ default: "\"default\"",
+ description: "Visual variant. Matches shadcn button variant names.",
+ },
+ {
+ name: "size",
+ type: "\"sm\" | \"default\" | \"lg\"",
+ default: "\"default\"",
+ description: "Button height and padding. sm=32px, default=40px, lg=48px.",
+ },
+ {
+ name: "steps",
+ type: "Step<ButtonAction>[]",
+ description: "Timeline script for the button interaction. Takes precedence over scenario.",
+ },
+ {
+ name: "theme",
+ type: "Partial<RemocnTheme>",
+ description: "Per-component theme override. Merges with the active RemocnUIProvider theme and the mode defaults. Must be concrete oklch/hex/rgb values — not CSS custom properties.",
+ },
+ {
+ name: "mode",
+ type: "\"light\" | \"dark\"",
+ default: "\"light\"",
+ description: "Sets the base palette. Overrides the mode on RemocnUIProvider when both are present.",
+ },
+ {
+ name: "scenario",
+ type: "\"happy\" | \"loading\" | \"error\" | \"idle\"",
+ default: "\"idle\"",
+ description: "Preview-convenience alias for a preset steps array. Ignored when steps is provided. Prefer steps in production compositions.",
+ },
+ {
+ name: "speed",
+ type: "number",
+ default: "1",
+ description: "Scales the playhead, not the authored step times. speed=2 makes all animations run twice as fast without changing your at values.",
+ },
+ {
+ name: "className",
+ type: "string",
+ description: "Optional className passed to the inner <button> element.",
+ },
+ ]}
+/>
diff --git a/content/docs/ui/index.mdx b/content/docs/ui/index.mdx
index db0abffc..26ca82c3 100644
--- a/content/docs/ui/index.mdx
+++ b/content/docs/ui/index.mdx
@@ -18,10 +18,10 @@ This also means you get things that are impossible in a real UI: scrub backward
Each component installs via the standard shadcn CLI. The shared `remocn-ui` core installs automatically as a `registryDependencies` entry — you do not need to install it separately.
```bash
-npx shadcn add @remocn/ui-button
+npx shadcn add @remocn/button
```
-This writes `components/remocn/ui-button.tsx` and `lib/remocn-ui/` to your project. Every `ui-*` component depends on the same `lib/remocn-ui/` core.
+This writes `components/remocn/button.tsx` and `lib/remocn-ui/` to your project. Every component depends on the same `lib/remocn-ui/` core.
## The `steps` timeline envelope
@@ -43,10 +43,10 @@ interface Step<A extends string = string, V = unknown> {
A Button scripted through a full interaction looks like this:
```tsx
-import { UIButton } from "@/components/remocn/ui-button";
+import { Button } from "@/components/remocn/button";
export const Scene = () => (
- <UIButton
+ <Button
label="Continue"
steps={[
{ at: 10, action: "hover" },
@@ -138,7 +138,7 @@ import { RemocnUIProvider } from "@/lib/remocn-ui";
export const Scene = () => (
<RemocnUIProvider mode="dark" theme={{ primary: "oklch(0.6 0.22 260)" }}>
- <UIButton label="Continue" steps={[{ at: 10, action: "hover" }]} />
+ <Button label="Continue" steps={[{ at: 10, action: "hover" }]} />
<UICheckbox label="Remember me" steps={[{ at: 30, action: "check" }]} />
</RemocnUIProvider>
);
@@ -168,7 +168,7 @@ A project whose `:root` overrides `--primary` will see static elements pick up t
## Core library exports
-Installing any `@remocn/ui-*` component also installs `lib/remocn-ui/` with these modules:
+Installing any component in this tier also installs `lib/remocn-ui/` with these modules:
| Module | Key exports |
|---|---|
diff --git a/content/docs/ui/meta.json b/content/docs/ui/meta.json
index a2c78775..f0f3abfc 100644
--- a/content/docs/ui/meta.json
+++ b/content/docs/ui/meta.json
@@ -1,5 +1,5 @@
{
"title": "UI",
"collapsible": false,
- "pages": ["index"]
+ "pages": ["index", "button"]
}
diff --git a/lib/customizer-config.ts b/lib/customizer-config.ts
index 530beaf0..dba6d077 100644
--- a/lib/customizer-config.ts
+++ b/lib/customizer-config.ts
@@ -29,6 +29,13 @@ export interface ComponentConfig {
* Pascal-case component name used in the generated JSX snippet.
*/
componentName: string;
+ /**
+ * Optional custom code-snippet generator. When present, the preview's
+ * `generateCode` delegates to it instead of the default prop serializer
+ * (used by the ui-tier primitives to emit a `steps={[…]}` literal and omit
+ * preview-only props). Components without it keep the default path.
+ */
+ snippet?: (values: Record<string, unknown>) => string;
}
export const FPS = 30;
diff --git a/public/r/registry.json b/public/r/registry.json
index 33577044..6b0c78b0 100644
--- a/public/r/registry.json
+++ b/public/r/registry.json
@@ -2,748 +2,9 @@
"$schema": "https://ui.shadcn.com/schema/registry.json",
"name": "remocn",
"homepage": "https://remocn.dev",
- "items": [
- {
- "name": "blur-reveal",
- "type": "registry:component",
- "title": "Blur Reveal",
- "description": "Text fades in from a heavy blur into sharp focus.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/blur-reveal/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/blur-reveal.tsx"
- }
- ]
- },
- {
- "name": "typewriter",
- "type": "registry:component",
- "title": "Typewriter",
- "description": "Character-by-character text reveal with a deterministic blinking cursor.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/typewriter/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/typewriter.tsx"
- }
- ]
- },
- {
- "name": "inline-highlight",
- "type": "registry:component",
- "title": "Inline Highlight",
- "description": "Animates one word inside a sentence from a base color to a brand color.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/inline-highlight/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/inline-highlight.tsx"
- }
- ]
- },
- {
- "name": "strikethrough-replace",
- "type": "registry:component",
- "title": "Strikethrough Replace",
- "description": "Draws a strike line across old text then reveals new text in its place.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/strikethrough-replace/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/strikethrough-replace.tsx"
- }
- ]
- },
- {
- "name": "staggered-fade-up",
- "type": "registry:component",
- "title": "Staggered Fade Up",
- "description": "Words fade in and slide up one after another with a configurable delay.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/staggered-fade-up/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/staggered-fade-up.tsx"
- }
- ]
- },
- {
- "name": "masked-slide-reveal",
- "type": "registry:component",
- "title": "Masked Slide Reveal",
- "description": "Words slide up out of an invisible horizontal mask, one after another.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/masked-slide-reveal/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/masked-slide-reveal.tsx"
- }
- ]
- },
- {
- "name": "tracking-in",
- "type": "registry:component",
- "title": "Tracking In",
- "description": "Letter-spacing collapses and blur clears with a springy motion.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/tracking-in/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/tracking-in.tsx"
- }
- ]
- },
- {
- "name": "shimmer-sweep",
- "type": "registry:component",
- "title": "Shimmer Sweep",
- "description": "Light shine sweeps across muted text via background-clip:text.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/shimmer-sweep/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/shimmer-sweep.tsx"
- }
- ]
- },
- {
- "name": "marker-highlight",
- "type": "registry:component",
- "title": "Marker Highlight",
- "description": "Colored marker block draws behind a phrase as the text color shifts.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/marker-highlight/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/marker-highlight.tsx"
- }
- ]
- },
- {
- "name": "slot-machine-roll",
- "type": "registry:component",
- "title": "Slot Machine Roll",
- "description": "Vertical reel scrolls characters from one value to another.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/slot-machine-roll/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/slot-machine-roll.tsx"
- }
- ]
- },
- {
- "name": "matrix-decode",
- "type": "registry:component",
- "title": "Matrix Decode",
- "description": "Random scramble resolves left-to-right into the target text.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/matrix-decode/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/matrix-decode.tsx"
- }
- ]
- },
- {
- "name": "rgb-glitch-text",
- "type": "registry:component",
- "title": "RGB Glitch Text",
- "description": "Three RGB-offset text copies jitter for a brief glitch window.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/rgb-glitch-text/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/rgb-glitch-text.tsx"
- }
- ]
- },
- {
- "name": "infinite-marquee",
- "type": "registry:component",
- "title": "Infinite Marquee",
- "description": "Seamlessly looping horizontal text strip with optional stroke style.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/infinite-marquee/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/infinite-marquee.tsx"
- }
- ]
- },
- {
- "name": "mesh-gradient-bg",
- "type": "registry:component",
- "title": "Mesh Gradient Background",
- "description": "Living gradient with amorphous color blobs slowly drifting across the frame.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/mesh-gradient-bg/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/mesh-gradient-bg.tsx"
- }
- ]
- },
- {
- "name": "dynamic-grid",
- "type": "registry:component",
- "title": "Dynamic Grid",
- "description": "Subtle moving grid background with configurable cell size and direction.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/dynamic-grid/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/dynamic-grid.tsx"
- }
- ]
- },
- {
- "name": "spring-pop-in",
- "type": "registry:component",
- "title": "Spring Pop In",
- "description": "Elastic spring-driven scale-in wrapper for any child element.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/spring-pop-in/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/spring-pop-in.tsx"
- }
- ]
- },
- {
- "name": "simulated-cursor",
- "type": "registry:component",
- "title": "Simulated Cursor",
- "description": "Animated mouse cursor moving between waypoints with click ripple feedback.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/simulated-cursor/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/simulated-cursor.tsx"
- }
- ]
- },
- {
- "name": "directional-wipe",
- "type": "registry:component",
- "title": "Directional Wipe",
- "description": "Slide one scene in while pushing the other out.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/directional-wipe/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/directional-wipe.tsx"
- }
- ]
- },
- {
- "name": "device-mockup-zoom",
- "type": "registry:component",
- "title": "Device Mockup Zoom",
- "description": "Pull back from a UI to reveal it inside a device frame.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/device-mockup-zoom/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/device-mockup-zoom.tsx"
- }
- ]
- },
- {
- "name": "zoom-through-transition",
- "type": "registry:component",
- "title": "Zoom Through Transition",
- "description": "Aggressively scale into the center of an element.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/zoom-through-transition/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/zoom-through-transition.tsx"
- }
- ]
- },
- {
- "name": "chat-to-preview-layout",
- "type": "registry:component",
- "title": "Chat to Preview Layout",
- "description": "Two-column layout where chat shrinks and preview expands.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/chat-to-preview-layout/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/chat-to-preview-layout.tsx"
- }
- ]
- },
- {
- "name": "bounding-box-selector",
- "type": "registry:component",
- "title": "Bounding Box Selector",
- "description": "Figma-style selection rectangle appears around any element.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/bounding-box-selector/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/bounding-box-selector.tsx"
- }
- ]
- },
- {
- "name": "animated-line-chart",
- "type": "registry:component",
- "title": "Animated Line Chart",
- "description": "Line chart whose SVG path draws on from left to right with a leading dot.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/animated-line-chart/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/animated-line-chart.tsx"
- }
- ]
- },
- {
- "name": "animated-bar-chart",
- "type": "registry:component",
- "title": "Animated Bar Chart",
- "description": "Bars spring up from the baseline in a staggered cascade.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/animated-bar-chart/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/animated-bar-chart.tsx"
- }
- ]
- },
- {
- "name": "terminal-simulator",
- "type": "registry:component",
- "title": "Terminal Simulator",
- "description": "Terminal window that types out commands and rolls old lines off the top.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/terminal-simulator/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/terminal-simulator.tsx"
- }
- ]
- },
- {
- "name": "code-diff-wipe",
- "type": "registry:component",
- "title": "Code Diff Wipe",
- "description": "Before/after code reveal via clip-path wipe with a handle marker.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/code-diff-wipe/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/code-diff-wipe.tsx"
- }
- ]
- },
- {
- "name": "toast-notification",
- "type": "registry:component",
- "title": "Toast Notification",
- "description": "System-style toast pops in, holds, then slides out.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/toast-notification/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/toast-notification.tsx"
- }
- ]
- },
- {
- "name": "drag-and-drop-flow",
- "type": "registry:component",
- "title": "Drag and Drop Flow",
- "description": "Simulated file drag into a dropzone followed by upload progress.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/drag-and-drop-flow/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/drag-and-drop-flow.tsx"
- }
- ]
- },
- {
- "name": "progress-steps",
- "type": "registry:component",
- "title": "Progress Steps",
- "description": "Multi-step pipeline with sequentially activating nodes and filling lines.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/progress-steps/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/progress-steps.tsx"
- }
- ]
- },
- {
- "name": "data-flow-pipes",
- "type": "registry:component",
- "title": "Data Flow Pipes",
- "description": "Glowing data packets travel along SVG bezier pipes between system nodes, leaving fading trails.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/data-flow-pipes/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/data-flow-pipes.tsx"
- }
- ]
- },
- {
- "name": "code-accordion",
- "type": "registry:component",
- "title": "Code Accordion",
- "description": "A code window that springs a range of lines closed and replaces them with a \"N lines collapsed\" placeholder.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/code-accordion/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/code-accordion.tsx"
- }
- ]
- },
- {
- "name": "glass-code-block",
- "type": "registry:component",
- "title": "Glass Code Block",
- "description": "A premium frosted-glass code editor window with a regex tokenizer and line-by-line stagger reveal.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/glass-code-block/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/glass-code-block.tsx"
- }
- ]
- },
- {
- "name": "spotlight-card",
- "type": "registry:component",
- "title": "Spotlight Card",
- "description": "A card with a moonlight-cool radial spotlight that follows a synthetic cursor and lights up its microborder.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/spotlight-card/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/spotlight-card.tsx"
- }
- ]
- },
- {
- "name": "perspective-marquee",
- "type": "registry:component",
- "title": "Perspective Marquee",
- "description": "A 3D-tilted infinite marquee with depth-of-field blur on items rolling toward the horizon.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/perspective-marquee/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/perspective-marquee.tsx"
- }
- ]
- },
- {
- "name": "success-confetti",
- "type": "registry:component",
- "title": "Success Confetti",
- "description": "Deterministic seeded confetti burst with optional headline.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/success-confetti/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/success-confetti.tsx"
- }
- ]
- },
- {
- "name": "frosted-glass-wipe",
- "type": "registry:component",
- "title": "Frosted Glass Wipe",
- "description": "Elegant scene transition through a sliding pane of frosted glass.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/frosted-glass-wipe/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/frosted-glass-wipe.tsx"
- }
- ]
- },
- {
- "name": "kinetic-type-mask",
- "type": "registry:component",
- "title": "Kinetic Type Mask",
- "description": "Use giant typography as a window into the next scene.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/kinetic-type-mask/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/kinetic-type-mask.tsx"
- }
- ]
- },
- {
- "name": "spatial-push",
- "type": "registry:component",
- "title": "Spatial Push",
- "description": "A new scene physically presses the old one back into the frame.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/spatial-push/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/spatial-push.tsx"
- }
- ]
- },
- {
- "name": "grid-pixelate-wipe",
- "type": "registry:component",
- "title": "Grid Pixelate Wipe",
- "description": "Dissolve from one scene to the next through a deterministic grid of mask cells.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/grid-pixelate-wipe/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/grid-pixelate-wipe.tsx"
- }
- ]
- },
- {
- "name": "chromatic-aberration-wipe",
- "type": "registry:component",
- "title": "Chromatic Aberration Wipe",
- "description": "An ultra-fast slide transition with an RGB glitch on the peak frames.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/chromatic-aberration-wipe/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/chromatic-aberration-wipe.tsx"
- }
- ]
- },
- {
- "name": "hero-device-assemble",
- "type": "registry:component",
- "title": "Hero Device Assemble",
- "description": "Floating device layers spring together into a laptop or phone mockup, then the screen wakes with a shimmer.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/hero-device-assemble/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/hero-device-assemble.tsx"
- }
- ]
- },
- {
- "name": "ecosystem-constellation",
- "type": "registry:component",
- "title": "Ecosystem Constellation",
- "description": "A central logo orbited by integration satellites with pulsing data lines.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/ecosystem-constellation/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/ecosystem-constellation.tsx"
- }
- ]
- },
- {
- "name": "ai-generation-canvas",
- "type": "registry:component",
- "title": "AI Generation Canvas",
- "description": "A prompt input transforms into a header, then a skeleton dashboard flips into populated cards.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/ai-generation-canvas/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/ai-generation-canvas.tsx"
- }
- ]
- },
- {
- "name": "live-code-compilation",
- "type": "registry:component",
- "title": "Live Code Compilation",
- "description": "Split-screen where typed code on the left snaps a live UI preview on the right, HMR-style.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/live-code-compilation/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/live-code-compilation.tsx"
- }
- ]
- },
- {
- "name": "landing-code-showcase",
- "type": "registry:component",
- "title": "Landing Code Showcase",
- "description": "Magical split-screen: code types itself on the left while the preview reactively re-renders on the right with sparks and tactile bounce.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/landing-code-showcase/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/landing-code-showcase.tsx"
- }
- ]
- },
- {
- "name": "dashboard-populate",
- "type": "registry:component",
- "title": "Dashboard Populate",
- "description": "An empty dashboard cascades to life with KPI count-ups, bar bounces, line traces, and a donut fill.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/dashboard-populate/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/dashboard-populate.tsx"
- }
- ]
- },
- {
- "name": "terminal-to-browser-deploy",
- "type": "registry:component",
- "title": "Terminal to Browser Deploy",
- "description": "A CLI deploy completes, the terminal blurs back, and a browser window springs from the deploy URL.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/terminal-to-browser-deploy/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/terminal-to-browser-deploy.tsx"
- }
- ]
- },
- {
- "name": "browser-flow",
- "type": "registry:component",
- "title": "Browser Flow",
- "description": "Full Safari/Chrome simulation: typed URL, progress bar, page render, scroll, and a virtual cursor click.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/browser-flow/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/browser-flow.tsx"
- }
- ]
- },
- {
- "name": "pricing-tier-focus",
- "type": "registry:component",
- "title": "Pricing Tier Focus",
- "description": "Three pricing cards where the focused tier rises and brightens while siblings dim and blur.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/pricing-tier-focus/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/pricing-tier-focus.tsx"
- }
- ]
- },
- {
- "name": "infinite-bento-pan",
- "type": "registry:component",
- "title": "Infinite Bento Pan",
- "description": "A camera diagonally drifts across an oversized bento grid behind a soft vignette.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/infinite-bento-pan/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/infinite-bento-pan.tsx"
- }
- ]
- },
- {
- "name": "tool-menu-slide-in",
- "type": "registry:component",
- "title": "Tool Menu Slide In",
- "description": "A glass tool palette whips up from below the editor canvas while its icons pop in with a stagger.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/tool-menu-slide-in/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/tool-menu-slide-in.tsx"
- }
- ]
- },
- {
- "name": "image-expand-to-fullscreen",
- "type": "registry:component",
- "title": "Image Expand To Fullscreen",
- "description": "An image lifts out of a feed post and morphs into a fullscreen editor with toolbars sliding in.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/image-expand-to-fullscreen/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/image-expand-to-fullscreen.tsx"
- }
- ]
- },
- {
- "name": "github-stars",
- "type": "registry:component",
- "title": "GitHub Stars",
- "description": "Inertial fly-through of a repo's stargazers with a synced count-up odometer that locks on the total. Horizontal 16:9 or vertical 9:16.",
- "dependencies": ["remotion", "date-fns", "@remotion/google-fonts"],
- "files": [
- {
- "path": "registry/remocn/github-stars/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/github-stars.tsx"
- }
- ]
- }
- ]
+ "include": [
+ "registry/remocn/registry.json",
+ "registry/remocn-ui/registry.json"
+ ],
+ "items": []
}
diff --git a/registry.json b/registry.json
index 3e17d8ff..6b0c78b0 100644
--- a/registry.json
+++ b/registry.json
@@ -2,802 +2,9 @@
"$schema": "https://ui.shadcn.com/schema/registry.json",
"name": "remocn",
"homepage": "https://remocn.dev",
- "items": [
- {
- "name": "blur-reveal",
- "type": "registry:component",
- "title": "Blur Reveal",
- "description": "Text fades in from a heavy blur into sharp focus.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/blur-reveal/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/blur-reveal.tsx"
- }
- ]
- },
- {
- "name": "typewriter",
- "type": "registry:component",
- "title": "Typewriter",
- "description": "Character-by-character text reveal with a deterministic blinking cursor.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/typewriter/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/typewriter.tsx"
- }
- ]
- },
- {
- "name": "inline-highlight",
- "type": "registry:component",
- "title": "Inline Highlight",
- "description": "Animates one word inside a sentence from a base color to a brand color.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/inline-highlight/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/inline-highlight.tsx"
- }
- ]
- },
- {
- "name": "strikethrough-replace",
- "type": "registry:component",
- "title": "Strikethrough Replace",
- "description": "Draws a strike line across old text then reveals new text in its place.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/strikethrough-replace/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/strikethrough-replace.tsx"
- }
- ]
- },
- {
- "name": "staggered-fade-up",
- "type": "registry:component",
- "title": "Staggered Fade Up",
- "description": "Words fade in and slide up one after another with a configurable delay.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/staggered-fade-up/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/staggered-fade-up.tsx"
- }
- ]
- },
- {
- "name": "masked-slide-reveal",
- "type": "registry:component",
- "title": "Masked Slide Reveal",
- "description": "Words slide up out of an invisible horizontal mask, one after another.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/masked-slide-reveal/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/masked-slide-reveal.tsx"
- }
- ]
- },
- {
- "name": "tracking-in",
- "type": "registry:component",
- "title": "Tracking In",
- "description": "Letter-spacing collapses and blur clears with a springy motion.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/tracking-in/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/tracking-in.tsx"
- }
- ]
- },
- {
- "name": "shimmer-sweep",
- "type": "registry:component",
- "title": "Shimmer Sweep",
- "description": "Light shine sweeps across muted text via background-clip:text.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/shimmer-sweep/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/shimmer-sweep.tsx"
- }
- ]
- },
- {
- "name": "marker-highlight",
- "type": "registry:component",
- "title": "Marker Highlight",
- "description": "Colored marker block draws behind a phrase as the text color shifts.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/marker-highlight/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/marker-highlight.tsx"
- }
- ]
- },
- {
- "name": "slot-machine-roll",
- "type": "registry:component",
- "title": "Slot Machine Roll",
- "description": "Vertical reel scrolls characters from one value to another.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/slot-machine-roll/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/slot-machine-roll.tsx"
- }
- ]
- },
- {
- "name": "matrix-decode",
- "type": "registry:component",
- "title": "Matrix Decode",
- "description": "Random scramble resolves left-to-right into the target text.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/matrix-decode/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/matrix-decode.tsx"
- }
- ]
- },
- {
- "name": "rgb-glitch-text",
- "type": "registry:component",
- "title": "RGB Glitch Text",
- "description": "Three RGB-offset text copies jitter for a brief glitch window.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/rgb-glitch-text/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/rgb-glitch-text.tsx"
- }
- ]
- },
- {
- "name": "infinite-marquee",
- "type": "registry:component",
- "title": "Infinite Marquee",
- "description": "Seamlessly looping horizontal text strip with optional stroke style.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/infinite-marquee/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/infinite-marquee.tsx"
- }
- ]
- },
- {
- "name": "mesh-gradient-bg",
- "type": "registry:component",
- "title": "Mesh Gradient Background",
- "description": "Living gradient with amorphous color blobs slowly drifting across the frame.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/mesh-gradient-bg/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/mesh-gradient-bg.tsx"
- }
- ]
- },
- {
- "name": "dynamic-grid",
- "type": "registry:component",
- "title": "Dynamic Grid",
- "description": "Subtle moving grid background with configurable cell size and direction.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/dynamic-grid/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/dynamic-grid.tsx"
- }
- ]
- },
- {
- "name": "spring-pop-in",
- "type": "registry:component",
- "title": "Spring Pop In",
- "description": "Elastic spring-driven scale-in wrapper for any child element.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/spring-pop-in/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/spring-pop-in.tsx"
- }
- ]
- },
- {
- "name": "simulated-cursor",
- "type": "registry:component",
- "title": "Simulated Cursor",
- "description": "Animated mouse cursor moving between waypoints with click ripple feedback.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/simulated-cursor/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/simulated-cursor.tsx"
- }
- ]
- },
- {
- "name": "directional-wipe",
- "type": "registry:component",
- "title": "Directional Wipe",
- "description": "Slide one scene in while pushing the other out.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/directional-wipe/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/directional-wipe.tsx"
- }
- ]
- },
- {
- "name": "device-mockup-zoom",
- "type": "registry:component",
- "title": "Device Mockup Zoom",
- "description": "Pull back from a UI to reveal it inside a device frame.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/device-mockup-zoom/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/device-mockup-zoom.tsx"
- }
- ]
- },
- {
- "name": "zoom-through-transition",
- "type": "registry:component",
- "title": "Zoom Through Transition",
- "description": "Aggressively scale into the center of an element.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/zoom-through-transition/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/zoom-through-transition.tsx"
- }
- ]
- },
- {
- "name": "chat-to-preview-layout",
- "type": "registry:component",
- "title": "Chat to Preview Layout",
- "description": "Two-column layout where chat shrinks and preview expands.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/chat-to-preview-layout/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/chat-to-preview-layout.tsx"
- }
- ]
- },
- {
- "name": "bounding-box-selector",
- "type": "registry:component",
- "title": "Bounding Box Selector",
- "description": "Figma-style selection rectangle appears around any element.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/bounding-box-selector/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/bounding-box-selector.tsx"
- }
- ]
- },
- {
- "name": "animated-line-chart",
- "type": "registry:component",
- "title": "Animated Line Chart",
- "description": "Line chart whose SVG path draws on from left to right with a leading dot.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/animated-line-chart/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/animated-line-chart.tsx"
- }
- ]
- },
- {
- "name": "animated-bar-chart",
- "type": "registry:component",
- "title": "Animated Bar Chart",
- "description": "Bars spring up from the baseline in a staggered cascade.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/animated-bar-chart/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/animated-bar-chart.tsx"
- }
- ]
- },
- {
- "name": "terminal-simulator",
- "type": "registry:component",
- "title": "Terminal Simulator",
- "description": "Terminal window that types out commands and rolls old lines off the top.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/terminal-simulator/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/terminal-simulator.tsx"
- }
- ]
- },
- {
- "name": "code-diff-wipe",
- "type": "registry:component",
- "title": "Code Diff Wipe",
- "description": "Before/after code reveal via clip-path wipe with a handle marker.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/code-diff-wipe/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/code-diff-wipe.tsx"
- }
- ]
- },
- {
- "name": "toast-notification",
- "type": "registry:component",
- "title": "Toast Notification",
- "description": "System-style toast pops in, holds, then slides out.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/toast-notification/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/toast-notification.tsx"
- }
- ]
- },
- {
- "name": "drag-and-drop-flow",
- "type": "registry:component",
- "title": "Drag and Drop Flow",
- "description": "Simulated file drag into a dropzone followed by upload progress.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/drag-and-drop-flow/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/drag-and-drop-flow.tsx"
- }
- ]
- },
- {
- "name": "progress-steps",
- "type": "registry:component",
- "title": "Progress Steps",
- "description": "Multi-step pipeline with sequentially activating nodes and filling lines.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/progress-steps/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/progress-steps.tsx"
- }
- ]
- },
- {
- "name": "data-flow-pipes",
- "type": "registry:component",
- "title": "Data Flow Pipes",
- "description": "Glowing data packets travel along SVG bezier pipes between system nodes, leaving fading trails.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/data-flow-pipes/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/data-flow-pipes.tsx"
- }
- ]
- },
- {
- "name": "code-accordion",
- "type": "registry:component",
- "title": "Code Accordion",
- "description": "A code window that springs a range of lines closed and replaces them with a \"N lines collapsed\" placeholder.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/code-accordion/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/code-accordion.tsx"
- }
- ]
- },
- {
- "name": "glass-code-block",
- "type": "registry:component",
- "title": "Glass Code Block",
- "description": "A premium frosted-glass code editor window with a regex tokenizer and line-by-line stagger reveal.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/glass-code-block/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/glass-code-block.tsx"
- }
- ]
- },
- {
- "name": "spotlight-card",
- "type": "registry:component",
- "title": "Spotlight Card",
- "description": "A card with a moonlight-cool radial spotlight that follows a synthetic cursor and lights up its microborder.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/spotlight-card/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/spotlight-card.tsx"
- }
- ]
- },
- {
- "name": "perspective-marquee",
- "type": "registry:component",
- "title": "Perspective Marquee",
- "description": "A 3D-tilted infinite marquee with depth-of-field blur on items rolling toward the horizon.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/perspective-marquee/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/perspective-marquee.tsx"
- }
- ]
- },
- {
- "name": "success-confetti",
- "type": "registry:component",
- "title": "Success Confetti",
- "description": "Deterministic seeded confetti burst with optional headline.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/success-confetti/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/success-confetti.tsx"
- }
- ]
- },
- {
- "name": "frosted-glass-wipe",
- "type": "registry:component",
- "title": "Frosted Glass Wipe",
- "description": "Elegant scene transition through a sliding pane of frosted glass.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/frosted-glass-wipe/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/frosted-glass-wipe.tsx"
- }
- ]
- },
- {
- "name": "kinetic-type-mask",
- "type": "registry:component",
- "title": "Kinetic Type Mask",
- "description": "Use giant typography as a window into the next scene.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/kinetic-type-mask/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/kinetic-type-mask.tsx"
- }
- ]
- },
- {
- "name": "spatial-push",
- "type": "registry:component",
- "title": "Spatial Push",
- "description": "A new scene physically presses the old one back into the frame.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/spatial-push/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/spatial-push.tsx"
- }
- ]
- },
- {
- "name": "grid-pixelate-wipe",
- "type": "registry:component",
- "title": "Grid Pixelate Wipe",
- "description": "Dissolve from one scene to the next through a deterministic grid of mask cells.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/grid-pixelate-wipe/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/grid-pixelate-wipe.tsx"
- }
- ]
- },
- {
- "name": "chromatic-aberration-wipe",
- "type": "registry:component",
- "title": "Chromatic Aberration Wipe",
- "description": "An ultra-fast slide transition with an RGB glitch on the peak frames.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/chromatic-aberration-wipe/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/chromatic-aberration-wipe.tsx"
- }
- ]
- },
- {
- "name": "hero-device-assemble",
- "type": "registry:component",
- "title": "Hero Device Assemble",
- "description": "Floating device layers spring together into a laptop or phone mockup, then the screen wakes with a shimmer.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/hero-device-assemble/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/hero-device-assemble.tsx"
- }
- ]
- },
- {
- "name": "ecosystem-constellation",
- "type": "registry:component",
- "title": "Ecosystem Constellation",
- "description": "A central logo orbited by integration satellites with pulsing data lines.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/ecosystem-constellation/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/ecosystem-constellation.tsx"
- }
- ]
- },
- {
- "name": "ai-generation-canvas",
- "type": "registry:component",
- "title": "AI Generation Canvas",
- "description": "A prompt input transforms into a header, then a skeleton dashboard flips into populated cards.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/ai-generation-canvas/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/ai-generation-canvas.tsx"
- }
- ]
- },
- {
- "name": "live-code-compilation",
- "type": "registry:component",
- "title": "Live Code Compilation",
- "description": "Split-screen where typed code on the left snaps a live UI preview on the right, HMR-style.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/live-code-compilation/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/live-code-compilation.tsx"
- }
- ]
- },
- {
- "name": "landing-code-showcase",
- "type": "registry:component",
- "title": "Landing Code Showcase",
- "description": "Magical split-screen: code types itself on the left while the preview reactively re-renders on the right with sparks and tactile bounce.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/landing-code-showcase/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/landing-code-showcase.tsx"
- }
- ]
- },
- {
- "name": "dashboard-populate",
- "type": "registry:component",
- "title": "Dashboard Populate",
- "description": "An empty dashboard cascades to life with KPI count-ups, bar bounces, line traces, and a donut fill.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/dashboard-populate/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/dashboard-populate.tsx"
- }
- ]
- },
- {
- "name": "terminal-to-browser-deploy",
- "type": "registry:component",
- "title": "Terminal to Browser Deploy",
- "description": "A CLI deploy completes, the terminal blurs back, and a browser window springs from the deploy URL.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/terminal-to-browser-deploy/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/terminal-to-browser-deploy.tsx"
- }
- ]
- },
- {
- "name": "browser-flow",
- "type": "registry:component",
- "title": "Browser Flow",
- "description": "Full Safari/Chrome simulation: typed URL, progress bar, page render, scroll, and a virtual cursor click.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/browser-flow/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/browser-flow.tsx"
- }
- ]
- },
- {
- "name": "pricing-tier-focus",
- "type": "registry:component",
- "title": "Pricing Tier Focus",
- "description": "Three pricing cards where the focused tier rises and brightens while siblings dim and blur.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/pricing-tier-focus/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/pricing-tier-focus.tsx"
- }
- ]
- },
- {
- "name": "infinite-bento-pan",
- "type": "registry:component",
- "title": "Infinite Bento Pan",
- "description": "A camera diagonally drifts across an oversized bento grid behind a soft vignette.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/infinite-bento-pan/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/infinite-bento-pan.tsx"
- }
- ]
- },
- {
- "name": "tool-menu-slide-in",
- "type": "registry:component",
- "title": "Tool Menu Slide In",
- "description": "A glass tool palette whips up from below the editor canvas while its icons pop in with a stagger.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/tool-menu-slide-in/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/tool-menu-slide-in.tsx"
- }
- ]
- },
- {
- "name": "image-expand-to-fullscreen",
- "type": "registry:component",
- "title": "Image Expand To Fullscreen",
- "description": "An image lifts out of a feed post and morphs into a fullscreen editor with toolbars sliding in.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/image-expand-to-fullscreen/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/image-expand-to-fullscreen.tsx"
- }
- ]
- },
- {
- "name": "github-stars",
- "type": "registry:component",
- "title": "GitHub Stars",
- "description": "Inertial fly-through of a repo's stargazers with a synced count-up odometer that locks on the total. Horizontal 16:9 or vertical 9:16.",
- "dependencies": ["remotion", "date-fns", "@remotion/google-fonts"],
- "files": [
- {
- "path": "registry/remocn/github-stars/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/github-stars.tsx"
- }
- ]
- },
- {
- "name": "remocn-ui",
- "type": "registry:lib",
- "title": "remocn UI Core",
- "description": "Shared timeline-fold hook, theme context, and color math for remocn UI primitives.",
- "dependencies": ["remotion", "culori"],
- "files": [
- {
- "path": "registry/remocn/ui-core/timeline.ts",
- "type": "registry:lib",
- "target": "lib/remocn-ui/timeline.ts"
- },
- {
- "path": "registry/remocn/ui-core/theme.ts",
- "type": "registry:lib",
- "target": "lib/remocn-ui/theme.ts"
- },
- {
- "path": "registry/remocn/ui-core/color.ts",
- "type": "registry:lib",
- "target": "lib/remocn-ui/color.ts"
- },
- {
- "path": "registry/remocn/ui-core/motion.ts",
- "type": "registry:lib",
- "target": "lib/remocn-ui/motion.ts"
- },
- {
- "path": "registry/remocn/ui-core/types.ts",
- "type": "registry:lib",
- "target": "lib/remocn-ui/types.ts"
- },
- {
- "path": "registry/remocn/ui-core/index.ts",
- "type": "registry:lib",
- "target": "lib/remocn-ui/index.ts"
- }
- ]
- },
- {
- "name": "ui-button",
- "type": "registry:component",
- "title": "UI Button",
- "description": "A shadcn-style button whose hover/press/loading/success states are scripted on the Remotion timeline.",
- "dependencies": ["remotion"],
- "registryDependencies": ["remocn-ui"],
- "files": [
- {
- "path": "registry/remocn/ui-button/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/ui-button.tsx"
- }
- ]
- }
- ]
+ "include": [
+ "registry/remocn/registry.json",
+ "registry/remocn-ui/registry.json"
+ ],
+ "items": []
}
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 6351238f..58dce8ba 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -105,6 +105,8 @@ import { TrackingIn } from "@/registry/remocn/tracking-in";
import { trackingInConfig } from "@/registry/remocn/tracking-in/config";
import { Typewriter } from "@/registry/remocn/typewriter";
import { typewriterConfig } from "@/registry/remocn/typewriter/config";
+import { Button } from "@/registry/remocn-ui/button";
+import { buttonConfig } from "@/registry/remocn-ui/button/config";
import { ZoomThroughTransition } from "@/registry/remocn/zoom-through-transition";
import { zoomThroughTransitionConfig } from "@/registry/remocn/zoom-through-transition/config";
@@ -278,6 +280,7 @@ const registry: Record<string, RegistryEntry> = {
config: imageExpandToFullscreenConfig,
},
"github-stars": { Component: GitHubStars, config: githubStarsConfig },
+ "button": { Component: Button, config: buttonConfig },
};
// Append the shared controls (e.g. `speed`) to every component config so
diff --git a/registry/remocn-ui/button/__tests__/README.md b/registry/remocn-ui/button/__tests__/README.md
new file mode 100644
index 00000000..460fea04
--- /dev/null
+++ b/registry/remocn-ui/button/__tests__/README.md
@@ -0,0 +1,85 @@
+# `button` — verification tests
+
+Pure / deterministic verification for the `button` component
+(`registry/remocn-ui/button/`). The RENDER path needs Remotion's
+`useCurrentFrame()` and cannot run headless, so the render is NOT exercised
+here. This suite covers the pieces that ARE pure: the `BUTTON_SCENARIOS` data
+shape, the reducer's phase mapping, and `buttonConfig.snippet` codegen.
+
+## How to run
+
+The repo uses **Bun**, which has a built-in test runner — runs TypeScript
+natively, no test-framework dep.
+
+```bash
+bun install
+bun test registry/remocn-ui/button/__tests__
+```
+
+`button.test.ts` imports `bun:test` (not `vitest`/`jest`), so no test script
+or framework dep is added to `package.json`.
+
+## What is covered
+
+- **`BUTTON_SCENARIOS` validity** — REAL export, plain data. Asserts: exactly the
+ four scenario keys; every step has a numeric, non-negative `at`; every
+ `action` is in the `ButtonAction` union; `idle` is empty; `happy`/`error` have
+ strictly increasing `at`; `happy` ends with `success`; `error` ends with
+ `reset`; `loading` is a single `loading` step.
+- **Reducer phase mapping** — the reducer is **NOT exported** (module-private
+ `function reducer` in `index.tsx:88-107`). The phase map is replicated as a
+ SPEC MIRROR (`hover→hover, press→press, release→hover, loading→loading,
+ success→success, reset→error`) and folded over each scenario: `idle`→`idle`,
+ `happy`→`success`, `error`→`error`, `loading`→`loading`. The mirror is
+ cross-checked against the scenarios' last actions. See testability gap below.
+- **`buttonConfig.snippet`** — REAL pure string builder (high value). Asserts:
+ emits `steps={[`; never leaks `scenario`; includes `import { Button }`;
+ omits props equal to defaults (`label=Continue`, `variant=default`,
+ `size=default`, `mode=light`); EMITS non-default `label`/`variant`/`size`/
+ `mode`; defaults scenario to `happy`; embeds each `BUTTON_SCENARIOS.happy`
+ step's `at`/`action`; `idle`→`steps={[]}`; entry count matches per scenario;
+ structural round-trip (starts with import, contains `<Button`, ends `/>`).
+- **`serializeSteps` emission** — NOT exported (module-private in
+ `config.ts:9-19`). Replicated as a SPEC MIRROR (`[]` for empty, omits/includes
+ `duration`) and the mirror's `happy` output is asserted to be a SUBSTRING of
+ the REAL snippet, proving the mirror tracks the real serializer.
+
+## Import strategy
+
+`button.test.ts` imports the REAL `BUTTON_SCENARIOS` (from `../index`) and
+the REAL `buttonConfig` (from `../config`) via **relative paths** — matching
+`ui-core/__tests__/color.test.ts`, which uses `../color`, not the `@/` alias.
+`bun test` does resolve tsconfig `paths`, but relative imports are the proven,
+alias-independent form used by the existing suite. Importing `index.tsx` pulls
+the `remotion` module, but the pieces under test never CALL `useCurrentFrame()`
+at import time (`BUTTON_SCENARIOS` is an object literal; `.snippet` is a pure
+function), so no Remotion render tree is required.
+
+> If `bun test` cannot resolve `remotion` at import (e.g. the package is not
+> installed), switch the top two imports to a local re-derivation: copy the
+> `BUTTON_SCENARIOS` literal and the `snippet`/`serializeSteps` bodies as
+> annotated MIRRORS — the section 2 and section 4 mirrors already demonstrate
+> the pattern. The numeric/string expectations are the verification value; the
+> import is just the harness.
+
+## Determinism grep checklist (run manually; must print NOTHING)
+
+The `ui` tier contract is "pure function of `useCurrentFrame()`" (plan §6): no
+React state, no DOM events, no wall-clock, no randomness in the tier source.
+Verify `button` (and the rest of the tier) with:
+
+```bash
+grep -nE "useState|useEffect|onClick|onChange|addEventListener|Date\.now|Math\.random" \
+ registry/remocn-ui/button/index.tsx
+```
+
+Expected: no output (exit code 1). Any match is a determinism violation. The
+spinner rotation in `button` is driven by `frame * speed * 6` (the injected
+playhead), NOT `Date.now()` / RAF — keep it that way.
+
+Tier-wide sweep (mirrors the ui-core checklist):
+
+```bash
+grep -nE "useState|useEffect|onClick|onChange|addEventListener|Date\.now|Math\.random" \
+ registry/remocn-ui/button/index.tsx registry/remocn-ui/core/*.ts
+```
diff --git a/registry/remocn-ui/button/__tests__/button.test.ts b/registry/remocn-ui/button/__tests__/button.test.ts
new file mode 100644
index 00000000..a9f77119
--- /dev/null
+++ b/registry/remocn-ui/button/__tests__/button.test.ts
@@ -0,0 +1,367 @@
+/**
+ * Verification tests for the PURE / DETERMINISTIC parts of `button`.
+ *
+ * Scope:
+ * - registry/remocn-ui/button/index.tsx — BUTTON_SCENARIOS shape + the
+ * (module-private) reducer's phase mapping.
+ * - registry/remocn-ui/button/config.ts — buttonConfig.snippet output +
+ * the (module-private) serializeSteps emission.
+ *
+ * Runner: Bun's built-in test runner (TypeScript-native, no framework dep).
+ * bun test registry/remocn-ui/button/__tests__
+ *
+ * --------------------------------------------------------------------------
+ * IMPORT STRATEGY — why we import REAL code here (unlike ui-core/timeline)
+ * --------------------------------------------------------------------------
+ * `index.tsx` and `config.ts` both top-level `import { … } from "remotion"`
+ * (index) / re-use BUTTON_SCENARIOS (config). The ui-core `timeline.test.ts`
+ * REPLICATED its fold because the impure part — `useCurrentFrame()` — is CALLED
+ * at module evaluation inside a hook. Here, by contrast, the pieces under test
+ * (`BUTTON_SCENARIOS`, `buttonConfig.snippet`, the reducer) never CALL a
+ * Remotion runtime API at import time:
+ * - `BUTTON_SCENARIOS` is a plain object literal.
+ * - `buttonConfig.snippet` is a pure string builder.
+ * Importing `remotion` only registers its module; it does not invoke
+ * `useCurrentFrame`. So we import the REAL source via RELATIVE paths (matching
+ * `color.test.ts` which uses `../color`, NOT the `@/` alias — `bun test` does
+ * resolve tsconfig `paths`, but relative is the proven, alias-independent form).
+ *
+ * The reducer is NOT exported (module-private `function reducer` in index.tsx).
+ * We therefore (a) assert everything reachable about it INDIRECTLY via the
+ * scenario shapes, and (b) replicate its documented phase mapping as a SPEC
+ * MIRROR (annotated with source line ranges) so the phase contract is pinned.
+ * See TESTABILITY GAP note at the bottom.
+ *
+ * MAINTENANCE CONTRACT: if index.tsx's reducer body or config.ts's
+ * serializeSteps body changes, the MIRROR replicas below MUST be updated in
+ * lockstep. The replicas are annotated with the source line ranges they mirror.
+ * --------------------------------------------------------------------------
+ */
+
+import { describe, expect, it } from "bun:test";
+import {
+ BUTTON_SCENARIOS,
+ type ButtonAction,
+ type ButtonPhase,
+ type ButtonScenario,
+} from "../index";
+import { buttonConfig } from "../config";
+
+// ===========================================================================
+// Shared fixtures
+// ===========================================================================
+
+/** The ButtonAction union, enumerated as a runtime list for membership checks. */
+const VALID_ACTIONS: readonly ButtonAction[] = [
+ "hover",
+ "press",
+ "release",
+ "loading",
+ "success",
+ "reset",
+];
+
+const SCENARIO_KEYS: readonly ButtonScenario[] = [
+ "happy",
+ "loading",
+ "error",
+ "idle",
+];
+
+// ===========================================================================
+// 1. BUTTON_SCENARIOS validity (real export, plain data — fully pure)
+// ===========================================================================
+
+describe("BUTTON_SCENARIOS", () => {
+ it("exposes exactly the four documented scenario keys", () => {
+ expect(Object.keys(BUTTON_SCENARIOS).sort()).toEqual(
+ [...SCENARIO_KEYS].sort(),
+ );
+ });
+
+ it("every step in every scenario has a numeric, non-negative `at`", () => {
+ for (const key of SCENARIO_KEYS) {
+ for (const step of BUTTON_SCENARIOS[key]) {
+ expect(typeof step.at).toBe("number");
+ expect(Number.isFinite(step.at)).toBe(true);
+ expect(step.at).toBeGreaterThanOrEqual(0);
+ }
+ }
+ });
+
+ it("every step's `action` is a member of the ButtonAction union", () => {
+ for (const key of SCENARIO_KEYS) {
+ for (const step of BUTTON_SCENARIOS[key]) {
+ expect(VALID_ACTIONS).toContain(step.action);
+ }
+ }
+ });
+
+ it("`idle` is empty", () => {
+ expect(BUTTON_SCENARIOS.idle).toEqual([]);
+ });
+
+ it("`happy` and `error` have strictly increasing `at` values", () => {
+ for (const key of ["happy", "error"] as const) {
+ const ats = BUTTON_SCENARIOS[key].map((s) => s.at);
+ for (let i = 1; i < ats.length; i++) {
+ expect(ats[i]).toBeGreaterThan(ats[i - 1]);
+ }
+ }
+ });
+
+ it("`happy` ends with a `success` action", () => {
+ const steps = BUTTON_SCENARIOS.happy;
+ expect(steps.length).toBeGreaterThan(0);
+ expect(steps[steps.length - 1].action).toBe("success");
+ });
+
+ it("`error` ends with a `reset` action", () => {
+ const steps = BUTTON_SCENARIOS.error;
+ expect(steps.length).toBeGreaterThan(0);
+ expect(steps[steps.length - 1].action).toBe("reset");
+ });
+
+ it("`loading` is a single `loading` step", () => {
+ expect(BUTTON_SCENARIOS.loading).toHaveLength(1);
+ expect(BUTTON_SCENARIOS.loading[0].action).toBe("loading");
+ });
+});
+
+// ===========================================================================
+// 2. Reducer phase mapping — MIRROR of index.tsx reducer (lines 90-109)
+// The reducer is NOT exported; this replica pins the documented contract.
+// See TESTABILITY GAP note at the bottom of this file.
+// ===========================================================================
+
+/**
+ * MIRROR of the module-private `reducer` in index.tsx (lines 90-109) plus the
+ * DEFAULT_STATE seed (line 79). Phase per action:
+ * hover→hover, press→press, release→hover, loading→loading,
+ * success→success, reset→idle (the destructive flash is IN-FLIGHT ONLY via
+ * isActiveReset; once the reset window closes the button settles to idle).
+ */
+const PHASE_AFTER_ACTION: Record<ButtonAction, ButtonPhase> = {
+ hover: "hover",
+ press: "press",
+ release: "hover",
+ loading: "loading",
+ success: "success",
+ reset: "idle",
+};
+
+/** MIRROR fold: seed = idle, apply each step's action via the map. */
+function phaseAfter(steps: { action: ButtonAction }[]): ButtonPhase {
+ let phase: ButtonPhase = "idle";
+ for (const step of steps) {
+ phase = PHASE_AFTER_ACTION[step.action];
+ }
+ return phase;
+}
+
+describe("reducer phase mapping (spec mirror of index.tsx:88-107)", () => {
+ it("each action maps to its documented terminal phase", () => {
+ expect(PHASE_AFTER_ACTION.hover).toBe("hover");
+ expect(PHASE_AFTER_ACTION.press).toBe("press");
+ expect(PHASE_AFTER_ACTION.release).toBe("hover");
+ expect(PHASE_AFTER_ACTION.loading).toBe("loading");
+ expect(PHASE_AFTER_ACTION.success).toBe("success");
+ // `reset` settles to idle. The destructive flash is in-flight only
+ // (driven by isActiveReset in the render path), NOT a settled phase.
+ expect(PHASE_AFTER_ACTION.reset).toBe("idle");
+ });
+
+ it("folding `idle` (empty) stays idle", () => {
+ expect(phaseAfter(BUTTON_SCENARIOS.idle)).toBe("idle");
+ });
+
+ it("folding `happy` lands on `success`", () => {
+ expect(phaseAfter(BUTTON_SCENARIOS.happy)).toBe("success");
+ });
+
+ it("folding `error` lands on `idle` (reset settles to idle, flash is in-flight only)", () => {
+ expect(phaseAfter(BUTTON_SCENARIOS.error)).toBe("idle");
+ });
+
+ it("folding `loading` lands on `loading`", () => {
+ expect(phaseAfter(BUTTON_SCENARIOS.loading)).toBe("loading");
+ });
+
+ it("the terminal phase agrees with the scenario's last action", () => {
+ for (const key of SCENARIO_KEYS) {
+ const steps = BUTTON_SCENARIOS[key];
+ if (steps.length === 0) {
+ expect(phaseAfter(steps)).toBe("idle");
+ continue;
+ }
+ const lastAction = steps[steps.length - 1].action;
+ expect(phaseAfter(steps)).toBe(PHASE_AFTER_ACTION[lastAction]);
+ }
+ });
+});
+
+// ===========================================================================
+// 3. buttonConfig.snippet — REAL pure string builder (high value)
+// ===========================================================================
+
+/** Minimal shape mirroring the customizer's value bag passed to snippet(). */
+type SnippetValues = {
+ scenario?: string;
+ label?: string;
+ variant?: string;
+ size?: string;
+ mode?: string;
+ primary?: string;
+};
+
+const snippet = (values: SnippetValues): string =>
+ buttonConfig.snippet(values as Record<string, unknown>);
+
+describe("buttonConfig.snippet", () => {
+ const happy = snippet({
+ scenario: "happy",
+ label: "Continue",
+ variant: "default",
+ size: "default",
+ mode: "light",
+ primary: "#171717",
+ });
+
+ it("emits the `steps={[` literal", () => {
+ expect(happy).toContain("steps={[");
+ });
+
+ it("does NOT leak the `scenario` prop into the snippet", () => {
+ // scenario is resolved to steps at snippet time; it must never appear as a
+ // prop or key in the emitted JSX.
+ expect(happy).not.toContain("scenario");
+ });
+
+ it("includes the `import { Button }` line", () => {
+ expect(happy).toContain('import { Button }');
+ expect(happy).toContain('from "@/components/remocn/button"');
+ });
+
+ it("omits all props that equal their defaults", () => {
+ // label=Continue, variant=default, size=default, mode=light, primary=#171717
+ // are all defaults → only `steps` should remain.
+ expect(happy).not.toContain("label=");
+ expect(happy).not.toContain("variant=");
+ expect(happy).not.toContain("size=");
+ expect(happy).not.toContain("mode=");
+ expect(happy).not.toContain("primary=");
+ expect(happy).toContain("steps={");
+ });
+
+ it("emits a non-default `label`", () => {
+ const out = snippet({ scenario: "happy", label: "Submit" });
+ expect(out).toContain('label="Submit"');
+ });
+
+ it("emits a non-default `variant`", () => {
+ const out = snippet({ scenario: "happy", variant: "destructive" });
+ expect(out).toContain('variant="destructive"');
+ });
+
+ it("emits a non-default `size`", () => {
+ const out = snippet({ scenario: "happy", size: "lg" });
+ expect(out).toContain('size="lg"');
+ });
+
+ it("emits a non-default `mode`", () => {
+ const out = snippet({ scenario: "happy", mode: "dark" });
+ expect(out).toContain('mode="dark"');
+ });
+
+ it("omits `primary` when it equals the default #171717", () => {
+ const out = snippet({ scenario: "happy", primary: "#171717" });
+ expect(out).not.toContain("primary=");
+ });
+
+ it("emits a non-default `primary`", () => {
+ const out = snippet({ scenario: "happy", primary: "#6366f1" });
+ expect(out).toContain('primary="#6366f1"');
+ });
+
+ it("defaults scenario to `happy` when omitted", () => {
+ const withDefault = snippet({});
+ const explicitHappy = snippet({ scenario: "happy" });
+ expect(withDefault).toBe(explicitHappy);
+ });
+
+ it("serializes each happy step's `at` and `action` into the steps literal", () => {
+ for (const step of BUTTON_SCENARIOS.happy) {
+ expect(happy).toContain(`at: ${step.at}`);
+ expect(happy).toContain(`action: "${step.action}"`);
+ }
+ });
+
+ it("emits `steps={[]}` for the empty `idle` scenario", () => {
+ const out = snippet({ scenario: "idle" });
+ expect(out).toContain("steps={[]}");
+ });
+
+ it("emits the right number of step entries for each scenario", () => {
+ for (const key of SCENARIO_KEYS) {
+ const out = snippet({ scenario: key });
+ const entryCount = (out.match(/action:/g) ?? []).length;
+ expect(entryCount).toBe(BUTTON_SCENARIOS[key].length);
+ }
+ });
+
+ it("produces output that round-trips to a valid-looking JSX block", () => {
+ // Structural smoke: opens with the import, contains a self-closing Button.
+ expect(happy.startsWith("import { Button }")).toBe(true);
+ expect(happy).toContain("<Button");
+ expect(happy.trimEnd().endsWith("/>")).toBe(true);
+ });
+});
+
+// ===========================================================================
+// 4. serializeSteps emission — MIRROR of config.ts serializeSteps (lines 9-19)
+// serializeSteps is NOT exported; this replica pins the emission format and
+// is cross-checked against the REAL snippet output above.
+// See TESTABILITY GAP note at the bottom.
+// ===========================================================================
+
+/** MIRROR of config.ts:serializeSteps (lines 9-19). */
+function serializeStepsMirror(
+ steps: { at: number; action: ButtonAction; duration?: number }[],
+): string {
+ if (steps.length === 0) return "[]";
+ const body = steps
+ .map((step) => {
+ const parts = [`at: ${step.at}`, `action: "${step.action}"`];
+ if (step.duration !== undefined) parts.push(`duration: ${step.duration}`);
+ return ` { ${parts.join(", ")} },`;
+ })
+ .join("\n");
+ return `[\n${body}\n ]`;
+}
+
+describe("serializeSteps emission (spec mirror of config.ts:9-19)", () => {
+ it("returns `[]` for empty steps", () => {
+ expect(serializeStepsMirror([])).toBe("[]");
+ });
+
+ it("omits the `duration` key when undefined", () => {
+ const out = serializeStepsMirror([{ at: 10, action: "hover" }]);
+ expect(out).not.toContain("duration");
+ expect(out).toContain('at: 10, action: "hover"');
+ });
+
+ it("includes the `duration` key when present", () => {
+ const out = serializeStepsMirror([
+ { at: 10, action: "loading", duration: 12 },
+ ]);
+ expect(out).toContain("duration: 12");
+ });
+
+ it("the mirror's happy output is a substring of the REAL snippet", () => {
+ // Cross-check: proves the mirror tracks the real serializer, and that the
+ // real snippet embeds exactly the BUTTON_SCENARIOS.happy steps.
+ const mirrored = serializeStepsMirror(BUTTON_SCENARIOS.happy);
+ const real = snippet({ scenario: "happy" });
+ expect(real).toContain(mirrored);
+ });
+});
diff --git a/registry/remocn-ui/button/config.ts b/registry/remocn-ui/button/config.ts
new file mode 100644
index 00000000..a941ac36
--- /dev/null
+++ b/registry/remocn-ui/button/config.ts
@@ -0,0 +1,83 @@
+import type { Step } from "@/lib/remocn-ui";
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+import {
+ BUTTON_SCENARIOS,
+ type ButtonAction,
+ type ButtonScenario,
+} from "@/registry/remocn-ui/button";
+
+function serializeSteps(steps: Step<ButtonAction>[]): string {
+ if (steps.length === 0) return "[]";
+ const body = steps
+ .map((step) => {
+ const parts = [`at: ${step.at}`, `action: "${step.action}"`];
+ if (step.duration !== undefined) parts.push(`duration: ${step.duration}`);
+ return ` { ${parts.join(", ")} },`;
+ })
+ .join("\n");
+ return `[\n${body}\n ]`;
+}
+
+export const buttonConfig: ComponentConfig = {
+ componentName: "Button",
+ importPath: "@/components/remocn/button",
+ controls: {
+ label: { type: "text", default: "Continue", label: "Label" },
+ variant: {
+ type: "select",
+ default: "default",
+ options: ["default", "secondary", "destructive", "outline", "ghost"],
+ label: "Variant",
+ },
+ size: {
+ type: "select",
+ default: "default",
+ options: ["sm", "default", "lg"],
+ label: "Size",
+ },
+ scenario: {
+ type: "select",
+ default: "happy",
+ options: ["happy", "loading", "error", "idle"],
+ label: "Scenario",
+ },
+ mode: {
+ type: "select",
+ default: "light",
+ options: ["light", "dark"],
+ label: "Mode",
+ },
+ primary: { type: "color", default: "#171717", label: "Primary" },
+ },
+ durationInFrames: 120,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+ snippet: (values) => {
+ const scenario = (values.scenario as ButtonScenario) ?? "happy";
+ const label = values.label as string | undefined;
+ const variant = values.variant as string | undefined;
+ const size = values.size as string | undefined;
+ const mode = values.mode as string | undefined;
+ const primary = values.primary as string | undefined;
+
+ const props: string[] = [];
+ if (label !== undefined && label !== "Continue")
+ props.push(` label="${label}"`);
+ if (variant !== undefined && variant !== "default")
+ props.push(` variant="${variant}"`);
+ if (size !== undefined && size !== "default")
+ props.push(` size="${size}"`);
+ if (mode !== undefined && mode !== "light")
+ props.push(` mode="${mode}"`);
+ if (primary !== undefined && primary !== "#171717")
+ props.push(` primary="${primary}"`);
+ props.push(` steps={${serializeSteps(BUTTON_SCENARIOS[scenario])}}`);
+
+ return `import { Button } from "@/components/remocn/button";
+
+<Button
+${props.join("\n")}
+/>`;
+ },
+};
diff --git a/registry/remocn-ui/button/index.tsx b/registry/remocn-ui/button/index.tsx
new file mode 100644
index 00000000..fca0d2bf
--- /dev/null
+++ b/registry/remocn-ui/button/index.tsx
@@ -0,0 +1,392 @@
+"use client";
+
+import { interpolate, useCurrentFrame } from "remotion";
+import {
+ mixOklch,
+ type RemocnTheme,
+ type Step,
+ useRemocnTheme,
+ useTimelineState,
+} from "@/lib/remocn-ui";
+
+export type ButtonAction =
+ | "hover"
+ | "press"
+ | "release"
+ | "loading"
+ | "success"
+ | "reset";
+
+export type ButtonPhase =
+ | "idle"
+ | "hover"
+ | "press"
+ | "loading"
+ | "success"
+ | "error";
+
+export type ButtonScenario = "happy" | "loading" | "error" | "idle";
+
+type ButtonVariant =
+ | "default"
+ | "secondary"
+ | "destructive"
+ | "outline"
+ | "ghost";
+
+type ButtonSize = "sm" | "default" | "lg";
+
+interface ButtonState {
+ phase: ButtonPhase;
+}
+
+export interface ButtonProps {
+ label?: string;
+ variant?: ButtonVariant;
+ size?: ButtonSize;
+ steps?: Step<ButtonAction>[];
+ theme?: Partial<RemocnTheme>;
+ /** Convenience override for the `primary` theme token — merged into `theme`. */
+ primary?: string;
+ mode?: "light" | "dark";
+ scenario?: ButtonScenario;
+ speed?: number;
+ className?: string;
+}
+
+/**
+ * The single source of truth for the preview scenarios. The component resolves
+ * `scenario`→steps when `steps` is absent; `config.snippet` imports this map to
+ * emit the `steps={[…]}` literal — so component and snippet never drift.
+ */
+export const BUTTON_SCENARIOS: Record<ButtonScenario, Step<ButtonAction>[]> = {
+ happy: [
+ { at: 10, action: "hover" },
+ { at: 25, action: "press" },
+ { at: 35, action: "loading" },
+ { at: 70, action: "success" },
+ ],
+ loading: [{ at: 10, action: "loading" }],
+ error: [
+ { at: 10, action: "hover" },
+ { at: 25, action: "press" },
+ { at: 35, action: "loading" },
+ { at: 70, action: "reset" },
+ ],
+ idle: [],
+};
+
+const DEFAULT_STATE: ButtonState = { phase: "idle" };
+
+const DURATION_DEFAULTS: Record<ButtonAction, number> = {
+ hover: 8,
+ press: 5,
+ release: 6,
+ loading: 10,
+ success: 14,
+ reset: 8,
+};
+
+function reducer(state: ButtonState, step: Step<ButtonAction>): ButtonState {
+ switch (step.action) {
+ case "hover":
+ return { phase: "hover" };
+ case "press":
+ return { phase: "press" };
+ case "release":
+ return { phase: "hover" };
+ case "loading":
+ return { phase: "loading" };
+ case "success":
+ return { phase: "success" };
+ case "reset":
+ // `reset` animates a destructive flash IN-FLIGHT (read via isActiveReset),
+ // then settles to idle. Settled truth = idle, not error.
+ return { phase: "idle" };
+ default:
+ return state;
+ }
+}
+
+const SIZE_STYLES: Record<
+ ButtonSize,
+ { height: number; padding: string; fontSize: number; gap: number }
+> = {
+ sm: { height: 32, padding: "0 12px", fontSize: 13, gap: 6 },
+ default: { height: 40, padding: "0 20px", fontSize: 15, gap: 8 },
+ lg: { height: 48, padding: "0 28px", fontSize: 17, gap: 10 },
+};
+
+interface VariantTokens {
+ bg: string;
+ fg: string;
+ hoverBg: string;
+ border: string;
+}
+
+function variantTokens(
+ variant: ButtonVariant,
+ theme: RemocnTheme,
+): VariantTokens {
+ switch (variant) {
+ case "secondary":
+ return {
+ bg: theme.secondary,
+ fg: theme.secondaryForeground,
+ hoverBg: mixOklch(theme.secondary, theme.muted, 1),
+ border: "transparent",
+ };
+ case "destructive":
+ return {
+ bg: theme.destructive,
+ fg: theme.destructiveForeground,
+ hoverBg: mixOklch(theme.destructive, theme.foreground, 0.12),
+ border: "transparent",
+ };
+ case "outline":
+ return {
+ bg: "transparent",
+ fg: theme.foreground,
+ hoverBg: theme.accent,
+ border: theme.border,
+ };
+ case "ghost":
+ return {
+ bg: "transparent",
+ fg: theme.foreground,
+ hoverBg: theme.accent,
+ border: "transparent",
+ };
+ default:
+ return {
+ bg: theme.primary,
+ fg: theme.primaryForeground,
+ hoverBg: mixOklch(theme.primary, theme.foreground, 0.1),
+ border: "transparent",
+ };
+ }
+}
+
+export function Button({
+ label = "Continue",
+ variant = "default",
+ size = "default",
+ steps,
+ theme: themeOverride,
+ primary,
+ mode,
+ scenario = "idle",
+ speed = 1,
+ className,
+}: ButtonProps) {
+ const frame = useCurrentFrame();
+ const theme = useRemocnTheme(
+ { ...themeOverride, ...(primary ? { primary } : {}) },
+ mode,
+ );
+
+ const resolvedSteps = steps ?? BUTTON_SCENARIOS[scenario];
+
+ const { state, active, progressOf } = useTimelineState<ButtonState, ButtonAction>(
+ resolvedSteps,
+ DEFAULT_STATE,
+ reducer,
+ DURATION_DEFAULTS,
+ speed,
+ );
+
+ const sizeStyle = SIZE_STYLES[size];
+ const tokens = variantTokens(variant, theme);
+
+ // --- Concurrent animation tracks (in-flight only) ---
+ const hoverP = progressOf("hover");
+ const pressP = progressOf("press");
+ const loadingP = progressOf("loading");
+ const successP = progressOf("success");
+ const resetP = progressOf("reset");
+
+ // --- Settled truth comes from state.phase (never from a closed progressOf) ---
+ const isHoverPhase =
+ state.phase === "hover" ||
+ state.phase === "press" ||
+ state.phase === "loading" ||
+ state.phase === "success";
+ const isPressPhase = state.phase === "press";
+ const isLoadingPhase = state.phase === "loading";
+ const isSuccessPhase = state.phase === "success";
+
+ // Whether the reset window is currently in-flight (progressOf is in-flight-only;
+ // use the active array for the gate so the flash only exists during the window).
+ const isActiveReset = active.some((a) => a.step.action === "reset");
+
+ // Hover lift + bg crossfade. Settled hover level holds at 1 once hovered.
+ const hoverLevel = isHoverPhase ? 1 : 0;
+ const hoverMix = Math.max(hoverLevel, hoverP);
+ const translateY = interpolate(hoverMix, [0, 1], [0, -1]);
+
+ // Press scale + darken. Settled at 0.97 while in press phase.
+ const pressLevel = isPressPhase ? 1 : 0;
+ const pressMix = Math.max(pressLevel, pressP);
+ const scale = interpolate(pressMix, [0, 1], [1, 0.97]);
+
+ // Loading: label fades out, spinner fades in. Settled fully on in loading.
+ const loadingLevel = isLoadingPhase || isSuccessPhase ? 1 : 0;
+ const loadingMix = Math.max(loadingLevel, loadingP);
+
+ // Success: spinner fades out, checkmark draws. Settled fully on in success.
+ const successLevel = isSuccessPhase ? 1 : 0;
+ const successMix = Math.max(successLevel, successP);
+
+ // Error flash on reset: IN-FLIGHT ONLY. Peaks at the start of the reset window
+ // (resetP=0 → full destructive) and fades back to base (resetP=1 → no flash).
+ // After the window closes isActiveReset is false → errorFlash=0, button is idle.
+ const errorFlash = isActiveReset ? 1 - resetP : 0;
+
+ // --- Resolve background ---
+ let background = tokens.bg;
+ if (isActiveReset) {
+ // destructive flash, easing back to base bg as reset window completes
+ background =
+ tokens.bg === "transparent"
+ ? mixOklch(theme.background, theme.destructive, errorFlash)
+ : mixOklch(tokens.bg, theme.destructive, errorFlash);
+ } else if (isSuccessPhase) {
+ // success settles bg to primary
+ background = mixOklch(tokens.bg, theme.primary, successMix);
+ } else if (tokens.bg === "transparent") {
+ // outline / ghost: fade in the accent bg on hover
+ background = mixOklch(theme.background, tokens.hoverBg, hoverMix);
+ } else {
+ const hovered = mixOklch(tokens.bg, tokens.hoverBg, hoverMix);
+ // press darkens further toward foreground
+ background = mixOklch(hovered, theme.foreground, pressMix * 0.08);
+ }
+
+ const labelOpacity = interpolate(loadingMix, [0, 1], [1, 0]);
+ const spinnerOpacity = Math.min(
+ interpolate(loadingMix, [0, 1], [0, 1]),
+ interpolate(successMix, [0, 1], [1, 0]),
+ );
+ const checkOpacity = interpolate(successMix, [0, 1], [0, 1]);
+
+ // Deterministic spinner rotation (no Date/RAF) — scaled by the same playhead.
+ const spinnerRotation = frame * speed * 6;
+
+ // Checkmark stroke draw via dash offset (path length ~ 14 units).
+ const checkPathLength = 14;
+ const checkDashOffset = interpolate(
+ successMix,
+ [0, 1],
+ [checkPathLength, 0],
+ );
+
+ const showSpinner = loadingMix > 0 || successMix > 0;
+ const iconSize = Math.round(sizeStyle.fontSize * 1.1);
+
+ return (
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ background: theme.background,
+ fontFamily:
+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",
+ }}
+ >
+ <button
+ type="button"
+ className={className}
+ style={{
+ position: "relative",
+ transform: `translateY(${translateY}px) scale(${scale})`,
+ display: "inline-flex",
+ alignItems: "center",
+ justifyContent: "center",
+ gap: sizeStyle.gap,
+ height: sizeStyle.height,
+ padding: sizeStyle.padding,
+ fontSize: sizeStyle.fontSize,
+ fontWeight: 500,
+ letterSpacing: "-0.01em",
+ color: tokens.fg,
+ background,
+ border:
+ variant === "outline"
+ ? `1px solid ${tokens.border}`
+ : "1px solid transparent",
+ borderRadius: theme.radius,
+ cursor: "pointer",
+ }}
+ >
+ <span
+ style={{
+ display: "inline-flex",
+ alignItems: "center",
+ justifyContent: "center",
+ position: "relative",
+ }}
+ >
+ {showSpinner && (
+ <span
+ style={{
+ position: "absolute",
+ inset: 0,
+ display: "inline-flex",
+ alignItems: "center",
+ justifyContent: "center",
+ }}
+ >
+ {/* Spinner */}
+ <svg
+ width={iconSize}
+ height={iconSize}
+ viewBox="0 0 24 24"
+ fill="none"
+ style={{
+ position: "absolute",
+ opacity: spinnerOpacity,
+ transform: `rotate(${spinnerRotation}deg)`,
+ }}
+ >
+ <circle
+ cx="12"
+ cy="12"
+ r="9"
+ stroke={tokens.fg}
+ strokeWidth="2.5"
+ strokeLinecap="round"
+ strokeDasharray="44"
+ strokeDashoffset="33"
+ opacity={0.9}
+ />
+ </svg>
+ {/* Checkmark */}
+ <svg
+ width={iconSize}
+ height={iconSize}
+ viewBox="0 0 24 24"
+ fill="none"
+ style={{ position: "absolute", opacity: checkOpacity }}
+ >
+ <path
+ d="M5 12.5l4.5 4.5L19 7"
+ stroke={tokens.fg}
+ strokeWidth="2.6"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeDasharray={checkPathLength}
+ strokeDashoffset={checkDashOffset}
+ pathLength={checkPathLength}
+ />
+ </svg>
+ </span>
+ )}
+ <span style={{ opacity: labelOpacity }}>{label}</span>
+ </span>
+ </button>
+ </div>
+ );
+}
diff --git a/registry/remocn/ui-core/__tests__/README.md b/registry/remocn-ui/core/__tests__/README.md
similarity index 94%
rename from registry/remocn/ui-core/__tests__/README.md
rename to registry/remocn-ui/core/__tests__/README.md
index 23a30362..bce96c29 100644
--- a/registry/remocn/ui-core/__tests__/README.md
+++ b/registry/remocn-ui/core/__tests__/README.md
@@ -1,7 +1,7 @@
# `remocn-ui` core — verification tests (Iteration 1)
Pure / deterministic verification for the `ui` tier core lib
-(`registry/remocn/ui-core/`). Covers the hand-rolled OKLCH color math and the
+(`registry/remocn-ui/core/`). Covers the hand-rolled OKLCH color math and the
timeline fold semantics. No React / Remotion render required.
## How to run
@@ -11,7 +11,7 @@ natively, no test-framework dep.
```bash
bun install # color.ts now imports `culori`
-bun test registry/remocn/ui-core/__tests__
+bun test registry/remocn-ui/core/__tests__
```
`color.ts` was rewritten to wrap the **`culori`** package, which is already
@@ -22,7 +22,7 @@ import. The test runner itself still needs nothing: these tests import
added to `package.json`.
> If you would rather standardize on a framework later, the lightest path that
-> needs a dep is **vitest**: `bunx vitest run registry/remocn/ui-core` after
+> needs a dep is **vitest**: `bunx vitest run registry/remocn-ui/core` after
> `bun add -d vitest`. The test bodies are framework-agnostic (`describe/it/
> expect`); only the top `import { ... } from "bun:test"` line would change to
> `from "vitest"`. Not required for Iteration 1.
@@ -75,7 +75,7 @@ source. Verify with:
```bash
grep -nE "useState|useEffect|onClick|onChange|addEventListener|Date\.now|Math\.random" \
- registry/remocn/ui-*/index.tsx registry/remocn/ui-core/*.ts
+ registry/remocn-ui/button/index.tsx registry/remocn-ui/core/*.ts
```
Expected: no output (exit code 1). Any match is a determinism violation.
diff --git a/registry/remocn/ui-core/__tests__/color.test.ts b/registry/remocn-ui/core/__tests__/color.test.ts
similarity index 99%
rename from registry/remocn/ui-core/__tests__/color.test.ts
rename to registry/remocn-ui/core/__tests__/color.test.ts
index 4168ac49..0134fdea 100644
--- a/registry/remocn/ui-core/__tests__/color.test.ts
+++ b/registry/remocn-ui/core/__tests__/color.test.ts
@@ -1,6 +1,6 @@
/**
* Verification tests for the OKLCH <-> sRGB color helpers in
- * registry/remocn/ui-core/color.ts.
+ * registry/remocn-ui/core/color.ts.
*
* color.ts is now a thin wrapper over the `culori` package, and it exposes
* culori's NATIVE shapes and scales:
@@ -15,7 +15,7 @@
* culori must be installed before these run:
*
* bun install # pulls culori + @types/culori
- * bun test registry/remocn/ui-core/__tests__
+ * bun test registry/remocn-ui/core/__tests__
*
* These tests are deliberately PROPERTY-BASED, not pinned to magic RGB numbers.
* culori uses its own matrices and gamut-mapping (clampChroma), so exact
diff --git a/registry/remocn/ui-core/__tests__/timeline.test.ts b/registry/remocn-ui/core/__tests__/timeline.test.ts
similarity index 99%
rename from registry/remocn/ui-core/__tests__/timeline.test.ts
rename to registry/remocn-ui/core/__tests__/timeline.test.ts
index 1329bd1a..f432e619 100644
--- a/registry/remocn/ui-core/__tests__/timeline.test.ts
+++ b/registry/remocn-ui/core/__tests__/timeline.test.ts
@@ -1,12 +1,12 @@
/**
* Verification tests for the timeline FOLD SEMANTICS.
*
- * Scope: registry/remocn/ui-core/timeline.ts — framesFor, revealCount, and the
+ * Scope: registry/remocn-ui/core/timeline.ts — framesFor, revealCount, and the
* pure fold logic inside useTimelineState (speed contract, active windows,
* progressOf in-flight-only, duration:0 snap).
*
* Runner: Bun's built-in test runner.
- * bun test registry/remocn/ui-core/__tests__
+ * bun test registry/remocn-ui/core/__tests__
*
* --------------------------------------------------------------------------
* WHY THE FOLD IS REPLICATED HERE INSTEAD OF IMPORTED
diff --git a/registry/remocn/ui-core/color.ts b/registry/remocn-ui/core/color.ts
similarity index 100%
rename from registry/remocn/ui-core/color.ts
rename to registry/remocn-ui/core/color.ts
diff --git a/registry/remocn/ui-core/index.ts b/registry/remocn-ui/core/index.ts
similarity index 100%
rename from registry/remocn/ui-core/index.ts
rename to registry/remocn-ui/core/index.ts
diff --git a/registry/remocn/ui-core/motion.ts b/registry/remocn-ui/core/motion.ts
similarity index 100%
rename from registry/remocn/ui-core/motion.ts
rename to registry/remocn-ui/core/motion.ts
diff --git a/registry/remocn/ui-core/theme.ts b/registry/remocn-ui/core/theme.ts
similarity index 100%
rename from registry/remocn/ui-core/theme.ts
rename to registry/remocn-ui/core/theme.ts
diff --git a/registry/remocn/ui-core/timeline.ts b/registry/remocn-ui/core/timeline.ts
similarity index 100%
rename from registry/remocn/ui-core/timeline.ts
rename to registry/remocn-ui/core/timeline.ts
diff --git a/registry/remocn/ui-core/types.ts b/registry/remocn-ui/core/types.ts
similarity index 100%
rename from registry/remocn/ui-core/types.ts
rename to registry/remocn-ui/core/types.ts
diff --git a/registry/remocn-ui/registry.json b/registry/remocn-ui/registry.json
new file mode 100644
index 00000000..e349fd38
--- /dev/null
+++ b/registry/remocn-ui/registry.json
@@ -0,0 +1,61 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry.json",
+ "name": "remocn-ui",
+ "homepage": "https://remocn.dev",
+ "items": [
+ {
+ "name": "remocn-ui",
+ "type": "registry:lib",
+ "title": "remocn UI Core",
+ "description": "Shared timeline-fold hook, theme context, and color math for remocn UI primitives.",
+ "dependencies": ["remotion", "culori"],
+ "files": [
+ {
+ "path": "core/timeline.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/timeline.ts"
+ },
+ {
+ "path": "core/theme.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/theme.ts"
+ },
+ {
+ "path": "core/color.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/color.ts"
+ },
+ {
+ "path": "core/motion.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/motion.ts"
+ },
+ {
+ "path": "core/types.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/types.ts"
+ },
+ {
+ "path": "core/index.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/index.ts"
+ }
+ ]
+ },
+ {
+ "name": "button",
+ "type": "registry:component",
+ "title": "UI Button",
+ "description": "A shadcn-style button whose hover/press/loading/success states are scripted on the Remotion timeline.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["remocn-ui"],
+ "files": [
+ {
+ "path": "button/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/button.tsx"
+ }
+ ]
+ }
+ ]
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
new file mode 100644
index 00000000..6933d752
--- /dev/null
+++ b/registry/remocn/registry.json
@@ -0,0 +1,749 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry.json",
+ "name": "remocn",
+ "homepage": "https://remocn.dev",
+ "items": [
+ {
+ "name": "blur-reveal",
+ "type": "registry:component",
+ "title": "Blur Reveal",
+ "description": "Text fades in from a heavy blur into sharp focus.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "blur-reveal/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/blur-reveal.tsx"
+ }
+ ]
+ },
+ {
+ "name": "typewriter",
+ "type": "registry:component",
+ "title": "Typewriter",
+ "description": "Character-by-character text reveal with a deterministic blinking cursor.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "typewriter/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/typewriter.tsx"
+ }
+ ]
+ },
+ {
+ "name": "inline-highlight",
+ "type": "registry:component",
+ "title": "Inline Highlight",
+ "description": "Animates one word inside a sentence from a base color to a brand color.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "inline-highlight/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/inline-highlight.tsx"
+ }
+ ]
+ },
+ {
+ "name": "strikethrough-replace",
+ "type": "registry:component",
+ "title": "Strikethrough Replace",
+ "description": "Draws a strike line across old text then reveals new text in its place.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "strikethrough-replace/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/strikethrough-replace.tsx"
+ }
+ ]
+ },
+ {
+ "name": "staggered-fade-up",
+ "type": "registry:component",
+ "title": "Staggered Fade Up",
+ "description": "Words fade in and slide up one after another with a configurable delay.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "staggered-fade-up/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/staggered-fade-up.tsx"
+ }
+ ]
+ },
+ {
+ "name": "masked-slide-reveal",
+ "type": "registry:component",
+ "title": "Masked Slide Reveal",
+ "description": "Words slide up out of an invisible horizontal mask, one after another.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "masked-slide-reveal/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/masked-slide-reveal.tsx"
+ }
+ ]
+ },
+ {
+ "name": "tracking-in",
+ "type": "registry:component",
+ "title": "Tracking In",
+ "description": "Letter-spacing collapses and blur clears with a springy motion.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "tracking-in/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/tracking-in.tsx"
+ }
+ ]
+ },
+ {
+ "name": "shimmer-sweep",
+ "type": "registry:component",
+ "title": "Shimmer Sweep",
+ "description": "Light shine sweeps across muted text via background-clip:text.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "shimmer-sweep/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/shimmer-sweep.tsx"
+ }
+ ]
+ },
+ {
+ "name": "marker-highlight",
+ "type": "registry:component",
+ "title": "Marker Highlight",
+ "description": "Colored marker block draws behind a phrase as the text color shifts.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "marker-highlight/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/marker-highlight.tsx"
+ }
+ ]
+ },
+ {
+ "name": "slot-machine-roll",
+ "type": "registry:component",
+ "title": "Slot Machine Roll",
+ "description": "Vertical reel scrolls characters from one value to another.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "slot-machine-roll/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/slot-machine-roll.tsx"
+ }
+ ]
+ },
+ {
+ "name": "matrix-decode",
+ "type": "registry:component",
+ "title": "Matrix Decode",
+ "description": "Random scramble resolves left-to-right into the target text.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "matrix-decode/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/matrix-decode.tsx"
+ }
+ ]
+ },
+ {
+ "name": "rgb-glitch-text",
+ "type": "registry:component",
+ "title": "RGB Glitch Text",
+ "description": "Three RGB-offset text copies jitter for a brief glitch window.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "rgb-glitch-text/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/rgb-glitch-text.tsx"
+ }
+ ]
+ },
+ {
+ "name": "infinite-marquee",
+ "type": "registry:component",
+ "title": "Infinite Marquee",
+ "description": "Seamlessly looping horizontal text strip with optional stroke style.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "infinite-marquee/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/infinite-marquee.tsx"
+ }
+ ]
+ },
+ {
+ "name": "mesh-gradient-bg",
+ "type": "registry:component",
+ "title": "Mesh Gradient Background",
+ "description": "Living gradient with amorphous color blobs slowly drifting across the frame.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "mesh-gradient-bg/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/mesh-gradient-bg.tsx"
+ }
+ ]
+ },
+ {
+ "name": "dynamic-grid",
+ "type": "registry:component",
+ "title": "Dynamic Grid",
+ "description": "Subtle moving grid background with configurable cell size and direction.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "dynamic-grid/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/dynamic-grid.tsx"
+ }
+ ]
+ },
+ {
+ "name": "spring-pop-in",
+ "type": "registry:component",
+ "title": "Spring Pop In",
+ "description": "Elastic spring-driven scale-in wrapper for any child element.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "spring-pop-in/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/spring-pop-in.tsx"
+ }
+ ]
+ },
+ {
+ "name": "simulated-cursor",
+ "type": "registry:component",
+ "title": "Simulated Cursor",
+ "description": "Animated mouse cursor moving between waypoints with click ripple feedback.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "simulated-cursor/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/simulated-cursor.tsx"
+ }
+ ]
+ },
+ {
+ "name": "directional-wipe",
+ "type": "registry:component",
+ "title": "Directional Wipe",
+ "description": "Slide one scene in while pushing the other out.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "directional-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/directional-wipe.tsx"
+ }
+ ]
+ },
+ {
+ "name": "device-mockup-zoom",
+ "type": "registry:component",
+ "title": "Device Mockup Zoom",
+ "description": "Pull back from a UI to reveal it inside a device frame.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "device-mockup-zoom/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/device-mockup-zoom.tsx"
+ }
+ ]
+ },
+ {
+ "name": "zoom-through-transition",
+ "type": "registry:component",
+ "title": "Zoom Through Transition",
+ "description": "Aggressively scale into the center of an element.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "zoom-through-transition/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/zoom-through-transition.tsx"
+ }
+ ]
+ },
+ {
+ "name": "chat-to-preview-layout",
+ "type": "registry:component",
+ "title": "Chat to Preview Layout",
+ "description": "Two-column layout where chat shrinks and preview expands.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "chat-to-preview-layout/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/chat-to-preview-layout.tsx"
+ }
+ ]
+ },
+ {
+ "name": "bounding-box-selector",
+ "type": "registry:component",
+ "title": "Bounding Box Selector",
+ "description": "Figma-style selection rectangle appears around any element.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "bounding-box-selector/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/bounding-box-selector.tsx"
+ }
+ ]
+ },
+ {
+ "name": "animated-line-chart",
+ "type": "registry:component",
+ "title": "Animated Line Chart",
+ "description": "Line chart whose SVG path draws on from left to right with a leading dot.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "animated-line-chart/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/animated-line-chart.tsx"
+ }
+ ]
+ },
+ {
+ "name": "animated-bar-chart",
+ "type": "registry:component",
+ "title": "Animated Bar Chart",
+ "description": "Bars spring up from the baseline in a staggered cascade.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "animated-bar-chart/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/animated-bar-chart.tsx"
+ }
+ ]
+ },
+ {
+ "name": "terminal-simulator",
+ "type": "registry:component",
+ "title": "Terminal Simulator",
+ "description": "Terminal window that types out commands and rolls old lines off the top.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "terminal-simulator/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/terminal-simulator.tsx"
+ }
+ ]
+ },
+ {
+ "name": "code-diff-wipe",
+ "type": "registry:component",
+ "title": "Code Diff Wipe",
+ "description": "Before/after code reveal via clip-path wipe with a handle marker.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "code-diff-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/code-diff-wipe.tsx"
+ }
+ ]
+ },
+ {
+ "name": "toast-notification",
+ "type": "registry:component",
+ "title": "Toast Notification",
+ "description": "System-style toast pops in, holds, then slides out.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "toast-notification/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/toast-notification.tsx"
+ }
+ ]
+ },
+ {
+ "name": "drag-and-drop-flow",
+ "type": "registry:component",
+ "title": "Drag and Drop Flow",
+ "description": "Simulated file drag into a dropzone followed by upload progress.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "drag-and-drop-flow/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/drag-and-drop-flow.tsx"
+ }
+ ]
+ },
+ {
+ "name": "progress-steps",
+ "type": "registry:component",
+ "title": "Progress Steps",
+ "description": "Multi-step pipeline with sequentially activating nodes and filling lines.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "progress-steps/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/progress-steps.tsx"
+ }
+ ]
+ },
+ {
+ "name": "data-flow-pipes",
+ "type": "registry:component",
+ "title": "Data Flow Pipes",
+ "description": "Glowing data packets travel along SVG bezier pipes between system nodes, leaving fading trails.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "data-flow-pipes/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/data-flow-pipes.tsx"
+ }
+ ]
+ },
+ {
+ "name": "code-accordion",
+ "type": "registry:component",
+ "title": "Code Accordion",
+ "description": "A code window that springs a range of lines closed and replaces them with a \"N lines collapsed\" placeholder.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "code-accordion/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/code-accordion.tsx"
+ }
+ ]
+ },
+ {
+ "name": "glass-code-block",
+ "type": "registry:component",
+ "title": "Glass Code Block",
+ "description": "A premium frosted-glass code editor window with a regex tokenizer and line-by-line stagger reveal.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "glass-code-block/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/glass-code-block.tsx"
+ }
+ ]
+ },
+ {
+ "name": "spotlight-card",
+ "type": "registry:component",
+ "title": "Spotlight Card",
+ "description": "A card with a moonlight-cool radial spotlight that follows a synthetic cursor and lights up its microborder.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "spotlight-card/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/spotlight-card.tsx"
+ }
+ ]
+ },
+ {
+ "name": "perspective-marquee",
+ "type": "registry:component",
+ "title": "Perspective Marquee",
+ "description": "A 3D-tilted infinite marquee with depth-of-field blur on items rolling toward the horizon.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "perspective-marquee/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/perspective-marquee.tsx"
+ }
+ ]
+ },
+ {
+ "name": "success-confetti",
+ "type": "registry:component",
+ "title": "Success Confetti",
+ "description": "Deterministic seeded confetti burst with optional headline.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "success-confetti/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/success-confetti.tsx"
+ }
+ ]
+ },
+ {
+ "name": "frosted-glass-wipe",
+ "type": "registry:component",
+ "title": "Frosted Glass Wipe",
+ "description": "Elegant scene transition through a sliding pane of frosted glass.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "frosted-glass-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/frosted-glass-wipe.tsx"
+ }
+ ]
+ },
+ {
+ "name": "kinetic-type-mask",
+ "type": "registry:component",
+ "title": "Kinetic Type Mask",
+ "description": "Use giant typography as a window into the next scene.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "kinetic-type-mask/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/kinetic-type-mask.tsx"
+ }
+ ]
+ },
+ {
+ "name": "spatial-push",
+ "type": "registry:component",
+ "title": "Spatial Push",
+ "description": "A new scene physically presses the old one back into the frame.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "spatial-push/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/spatial-push.tsx"
+ }
+ ]
+ },
+ {
+ "name": "grid-pixelate-wipe",
+ "type": "registry:component",
+ "title": "Grid Pixelate Wipe",
+ "description": "Dissolve from one scene to the next through a deterministic grid of mask cells.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "grid-pixelate-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/grid-pixelate-wipe.tsx"
+ }
+ ]
+ },
+ {
+ "name": "chromatic-aberration-wipe",
+ "type": "registry:component",
+ "title": "Chromatic Aberration Wipe",
+ "description": "An ultra-fast slide transition with an RGB glitch on the peak frames.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "chromatic-aberration-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/chromatic-aberration-wipe.tsx"
+ }
+ ]
+ },
+ {
+ "name": "hero-device-assemble",
+ "type": "registry:component",
+ "title": "Hero Device Assemble",
+ "description": "Floating device layers spring together into a laptop or phone mockup, then the screen wakes with a shimmer.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "hero-device-assemble/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/hero-device-assemble.tsx"
+ }
+ ]
+ },
+ {
+ "name": "ecosystem-constellation",
+ "type": "registry:component",
+ "title": "Ecosystem Constellation",
+ "description": "A central logo orbited by integration satellites with pulsing data lines.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "ecosystem-constellation/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/ecosystem-constellation.tsx"
+ }
+ ]
+ },
+ {
+ "name": "ai-generation-canvas",
+ "type": "registry:component",
+ "title": "AI Generation Canvas",
+ "description": "A prompt input transforms into a header, then a skeleton dashboard flips into populated cards.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "ai-generation-canvas/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/ai-generation-canvas.tsx"
+ }
+ ]
+ },
+ {
+ "name": "live-code-compilation",
+ "type": "registry:component",
+ "title": "Live Code Compilation",
+ "description": "Split-screen where typed code on the left snaps a live UI preview on the right, HMR-style.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "live-code-compilation/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/live-code-compilation.tsx"
+ }
+ ]
+ },
+ {
+ "name": "landing-code-showcase",
+ "type": "registry:component",
+ "title": "Landing Code Showcase",
+ "description": "Magical split-screen: code types itself on the left while the preview reactively re-renders on the right with sparks and tactile bounce.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "landing-code-showcase/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/landing-code-showcase.tsx"
+ }
+ ]
+ },
+ {
+ "name": "dashboard-populate",
+ "type": "registry:component",
+ "title": "Dashboard Populate",
+ "description": "An empty dashboard cascades to life with KPI count-ups, bar bounces, line traces, and a donut fill.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "dashboard-populate/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/dashboard-populate.tsx"
+ }
+ ]
+ },
+ {
+ "name": "terminal-to-browser-deploy",
+ "type": "registry:component",
+ "title": "Terminal to Browser Deploy",
+ "description": "A CLI deploy completes, the terminal blurs back, and a browser window springs from the deploy URL.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "terminal-to-browser-deploy/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/terminal-to-browser-deploy.tsx"
+ }
+ ]
+ },
+ {
+ "name": "browser-flow",
+ "type": "registry:component",
+ "title": "Browser Flow",
+ "description": "Full Safari/Chrome simulation: typed URL, progress bar, page render, scroll, and a virtual cursor click.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "browser-flow/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/browser-flow.tsx"
+ }
+ ]
+ },
+ {
+ "name": "pricing-tier-focus",
+ "type": "registry:component",
+ "title": "Pricing Tier Focus",
+ "description": "Three pricing cards where the focused tier rises and brightens while siblings dim and blur.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "pricing-tier-focus/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/pricing-tier-focus.tsx"
+ }
+ ]
+ },
+ {
+ "name": "infinite-bento-pan",
+ "type": "registry:component",
+ "title": "Infinite Bento Pan",
+ "description": "A camera diagonally drifts across an oversized bento grid behind a soft vignette.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "infinite-bento-pan/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/infinite-bento-pan.tsx"
+ }
+ ]
+ },
+ {
+ "name": "tool-menu-slide-in",
+ "type": "registry:component",
+ "title": "Tool Menu Slide In",
+ "description": "A glass tool palette whips up from below the editor canvas while its icons pop in with a stagger.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "tool-menu-slide-in/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/tool-menu-slide-in.tsx"
+ }
+ ]
+ },
+ {
+ "name": "image-expand-to-fullscreen",
+ "type": "registry:component",
+ "title": "Image Expand To Fullscreen",
+ "description": "An image lifts out of a feed post and morphs into a fullscreen editor with toolbars sliding in.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "image-expand-to-fullscreen/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/image-expand-to-fullscreen.tsx"
+ }
+ ]
+ },
+ {
+ "name": "github-stars",
+ "type": "registry:component",
+ "title": "GitHub Stars",
+ "description": "Inertial fly-through of a repo's stargazers with a synced count-up odometer that locks on the total. Horizontal 16:9 or vertical 9:16.",
+ "dependencies": ["remotion", "date-fns", "@remotion/google-fonts"],
+ "files": [
+ {
+ "path": "github-stars/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/github-stars.tsx"
+ }
+ ]
+ }
+ ]
+}
diff --git a/registry/remocn/ui-button/index.tsx b/registry/remocn/ui-button/index.tsx
deleted file mode 100644
index dd0e91b1..00000000
--- a/registry/remocn/ui-button/index.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-"use client";
-
-import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
-import { springs, useRemocnTheme } from "@/lib/remocn-ui";
-
-export interface UIButtonProps {
- label?: string;
- mode?: "light" | "dark";
- speed?: number;
- className?: string;
-}
-
-export function UIButton({
- label = "Continue",
- mode,
- speed = 1,
- className,
-}: UIButtonProps) {
- const frame = useCurrentFrame() * speed;
- const { fps } = useVideoConfig();
- const theme = useRemocnTheme(undefined, mode);
-
- const enter = spring({
- frame,
- fps,
- config: springs.soft,
- durationInFrames: 14,
- });
- const opacity = interpolate(enter, [0, 1], [0, 1], {
- extrapolateRight: "clamp",
- });
- const translateY = interpolate(enter, [0, 1], [8, 0]);
-
- return (
- <div
- style={{
- position: "absolute",
- inset: 0,
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- background: theme.background,
- fontFamily:
- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",
- }}
- >
- <button
- type="button"
- className={className}
- style={{
- opacity,
- transform: `translateY(${translateY}px)`,
- display: "inline-flex",
- alignItems: "center",
- justifyContent: "center",
- height: 40,
- padding: "0 20px",
- fontSize: 15,
- fontWeight: 500,
- letterSpacing: "-0.01em",
- color: theme.primaryForeground,
- background: theme.primary,
- border: "none",
- borderRadius: theme.radius,
- cursor: "pointer",
- }}
- >
- {label}
- </button>
- </div>
- );
-}
diff --git a/tsconfig.json b/tsconfig.json
index 3a13f90a..f9e8ef5a 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -19,6 +19,8 @@
}
],
"paths": {
+ "@/lib/remocn-ui": ["./registry/remocn-ui/core/index.ts"],
+ "@/lib/remocn-ui/*": ["./registry/remocn-ui/core/*"],
"@/*": ["./*"]
}
},