"use client"; import { RenderComponentWithSnippet } from "@/app/components/render"; import { useForm, FormProvider } from "react-hook-form"; import { MultiOptionInput } from "@calcom/ui/components/form"; type FormValues = { customPlaceholders: Array<{ label: string; id: string }>; noMoveButtons: Array<{ label: string; id: string }>; customLabel: Array<{ label: string; id: string }>; keyValuePairs: Array<{ label: string; value: string; id: string }>; }; export const CustomizationExample: React.FC = () => { const methods = useForm(); return (

Key-Value Pairs

Allows inputting keys and values

fieldArrayName="keyValuePairs" keyValueMode keyLabel="Environment Variable" valueLabel="Value" optionPlaceholders={["NODE_ENV", "PORT", "DATABASE_URL"]} valuePlaceholders={["production", "3000", "postgres://..."]} defaultNumberOfOptions={3} keyValueDelimiters={[":", "="]} />

Custom Placeholders

fieldArrayName="customPlaceholders" optionPlaceholders={["Enter your name", "Enter your email", "Enter your phone"]} defaultNumberOfOptions={3} />

Without Move Buttons

fieldArrayName="noMoveButtons" optionPlaceholders={["Static option 1", "Static option 2"]} defaultNumberOfOptions={2} showMoveButtons={false} />

Custom Add Button Label

fieldArrayName="customLabel" optionPlaceholders={["Social media link"]} defaultNumberOfOptions={1} addOptionLabel="Add another social media link" />
); };