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 { SelectItemState } from "@/registry/remocn-ui/select-item";
export const selectItemConfig: ComponentConfig = {
componentName: "SelectItem",
importPath: "@/components/remocn/select-item",
controls: {
label: {
type: "text-content",
default: "Banana",
description: "Label",
},
state: {
type: "enum",
default: "selected",
variants: {
idle: {},
hover: {},
press: {},
selected: {},
},
description: "State",
},
},
durationInFrames: 120,
fps: FPS,
compositionWidth: W,
compositionHeight: H,
previewBackdrop: { type: "color", value: "oklch(1 0 0)" },
snippet: (values) => {
const state = (values.state as SelectItemState) ?? "selected";
const label = values.label as string | undefined;
const props: string[] = [` state="${state}"`];
if (label !== undefined && label !== "Banana")
props.push(` label="${label}"`);
return `import { SelectItem } from "@/components/remocn/select-item";
<SelectItem
${props.join("\n")}
/>`;
},
};