Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
import type { ToggleGroupState } from "@/registry/remocn-ui/toggle-group";
export const toggleGroupConfig: ComponentConfig = {
componentName: "ToggleGroup",
importPath: "@/components/remocn/toggle-group",
controls: {
state: {
type: "enum",
default: "Monthly",
variants: {
Monthly: {},
Yearly: {},
},
description: "State",
},
size: {
type: "enum",
default: "default",
variants: {
default: {},
sm: {},
},
description: "Size",
},
},
durationInFrames: 120,
fps: FPS,
compositionWidth: W,
compositionHeight: H,
previewBackdrop: { type: "color", value: "oklch(1 0 0)" },
snippet: (values) => {
const state = (values.state as ToggleGroupState) ?? "Monthly";
const size = values.size as string | undefined;
const props: string[] = [` state="${state}"`];
if (size !== undefined && size !== "default")
props.push(` size="${size}"`);
return `import { ToggleGroup } from "@/components/remocn/toggle-group";
<ToggleGroup
${props.join("\n")}
items={[
{ value: "Monthly", label: "Monthly" },
{ value: "Yearly", label: "Yearly" },
]}
/>`;
},
};