Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: added installation all button
dev_wandrya9d6e0a34377
diff --git a/app/(home)/components/install-all.tsx b/app/(home)/components/install-all.tsxnew file mode 100644index 00000000..06c31e2e--- /dev/null+++ b/app/(home)/components/install-all.tsx@@ -0,0 +1,41 @@+"use client";++import { Check, Copy } from "lucide-react";+import { useState } from "react";+import { Button } from "@/components/ui/button";+import { INSTALL_ALL_COMMAND } from "@/config/site";+import { useTrackEvent } from "@/lib/analytics";++export function InstallAll() {+ const [copied, setCopied] = useState(false);+ const trackEvent = useTrackEvent();++ const copy = () => {+ navigator.clipboard.writeText(INSTALL_ALL_COMMAND);+ setCopied(true);+ trackEvent("install_command_copied", {+ component: "install_all",+ package_manager: "npm",+ surface: "landing",+ });+ setTimeout(() => setCopied(false), 1500);+ };++ return (+ <Button+ variant="outline"+ onClick={copy}+ aria-label="Copy command to install all components"+ className="group h-11 gap-3 rounded-full border-border bg-card/60 px-4 font-mono text-sm font-normal text-muted-foreground backdrop-blur-sm hover:border-foreground/20 hover:text-foreground"+ >+ <span className="text-foreground">Install all</span>+ <span aria-hidden className="text-muted-foreground/70">+ {copied ? (+ <Check className="size-4 text-foreground" />+ ) : (+ <Copy className="size-4" />+ )}+ </span>+ </Button>+ );+}diff --git a/app/(home)/components/sections/hero.tsx b/app/(home)/components/sections/hero.tsxindex 3e28a852..230bb5ad 100644--- a/app/(home)/components/sections/hero.tsx+++ b/app/(home)/components/sections/hero.tsx@@ -7,13 +7,13 @@ import Link from "next/link";import { useCallback, useRef, useState } from "react";import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";-import { INSTALL_COMMAND, SPRING_BOUNCE } from "@/config/site";+import { SPRING_BOUNCE } from "@/config/site";import { useTrackEvent } from "@/lib/analytics";import { HERO_CODE } from "@/lib/config/snippets";import registry from "@/registry/__index__";import { Backdrop } from "@/registry/remocn/backdrop";import { FadeUp } from "../fade-up";-import { InstallCommand } from "../install-command";+import { InstallAll } from "../install-all";import { useAutoplay } from "../use-autoplay";const GlassCodeBlock = registry["glass-code-block"]?.Component;@@ -132,7 +132,7 @@ export function Hero() {Browse components<ArrowRight className="size-4" aria-hidden="true" /></Button>- <InstallCommand command={INSTALL_COMMAND} />+ <InstallAll /></div></FadeUp></div>diff --git a/components/docs/install-all.tsx b/components/docs/install-all.tsxnew file mode 100644index 00000000..95bb51ef--- /dev/null+++ b/components/docs/install-all.tsx@@ -0,0 +1,16 @@+import { INSTALL_ALL_COMMAND } from "@/config/site";+import { convertNpmCommand } from "@/lib/convert-npm-command";+import { CodeBlockCommand } from "./code-block-command";++export function InstallAll() {+ return (+ <div className="my-6">+ <CodeBlockCommand+ component="all"+ variant="outline"+ prompt="Add every remocn component to my project."+ {...convertNpmCommand(INSTALL_ALL_COMMAND)}+ />+ </div>+ );+}diff --git a/config/site.ts b/config/site.tsindex 83b8b070..7d3166c8 100644--- a/config/site.ts+++ b/config/site.ts@@ -1,3 +1,6 @@+import remocnRegistry from "@/registry/remocn/registry.json";+import remocnUiRegistry from "@/registry/remocn-ui/registry.json";+// Pastel accent palette — peach / lavender / mint.// Used sparingly as low-opacity decorative glows; the base system is neutral.export const PEACH = "#FFB38E";@@ -9,6 +12,15 @@ export const GITHUB_URL = "https://github.com/kapishdima/remocn";/** Canonical example install command shown on the landing page. */export const INSTALL_COMMAND = "npx shadcn@latest add remocn/soft-blur-in";+export const INSTALL_ALL_NAMES: string[] = [+ ...remocnRegistry.items,+ ...remocnUiRegistry.items,+].map((item) => item.name);++export const INSTALL_ALL_COMMAND = `npx shadcn@latest add ${INSTALL_ALL_NAMES.map(+ (name) => `@remocn/${name}`,+).join(" ")}`;+export const SPRING_BOUNCE = {type: "spring" as const,stiffness: 120,diff --git a/content/docs/getting-started/installation.mdx b/content/docs/getting-started/installation.mdxindex ea2e3c2d..718266c3 100644--- a/content/docs/getting-started/installation.mdx+++ b/content/docs/getting-started/installation.mdx@@ -21,6 +21,12 @@ Pick the defaults: remocn components are framework-agnostic and only need the paThis copies `soft-blur-in.tsx` into `components/remocn/` (or wherever your `components.json` points).+## Install everything++Want the whole library at once? Copy this command to add every remocn component in a single run.++<InstallAll />+## 3. Use it in a Remotion composition```tsxdiff --git a/mdx-components.tsx b/mdx-components.tsxindex 2ef8781e..48f1221a 100644--- a/mdx-components.tsx+++ b/mdx-components.tsx@@ -7,6 +7,7 @@ import { ComponentPreview } from "@/components/docs/component-preview";import { UiComponentPreview } from "@/components/docs/ui-component-preview";import { BlockPreview } from "@/components/docs/block-preview";import { Dependencies } from "@/components/docs/dependencies";+import { InstallAll } from "@/components/docs/install-all";import { InstallBlock } from "@/components/docs/install-block";import { PropsTable } from "@/components/docs/props-table";@@ -39,6 +40,7 @@ export function getMDXComponents(components?: MDXComponents): MDXComponents {UiComponentPreview,BlockPreview,InstallBlock,+ InstallAll,PropsTable,Note,Warning,