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

Default Delimiters (Newline and Comma)

Try pasting: “Option 1, Option 2” or multiple lines

fieldArrayName="newlineOptions" optionPlaceholders={["Paste here..."]} defaultNumberOfOptions={1} />

Comma Only Delimiter

Try pasting: “First, Second, Third”

fieldArrayName="commaOptions" optionPlaceholders={["Paste here..."]} defaultNumberOfOptions={1} pasteDelimiters={[","]} />

Key-Value Pair Paste Support

Try pasting: “NODE_ENV=production” or “KEY1:value1, KEY2:value2”

fieldArrayName="keyValueOptions" keyValueMode optionPlaceholders={["Key..."]} valuePlaceholders={["Value..."]} defaultNumberOfOptions={1} keyValueDelimiters={[":", "="]} />

Custom Delimiters (Semicolon and Pipe)

Try pasting: “One;Two|Three”

fieldArrayName="customOptions" optionPlaceholders={["Paste here..."]} defaultNumberOfOptions={1} pasteDelimiters={[";", "|"]} />
); };