// Only for a form that looks or behaves unlike the default (option cards, a // summary step, a custom field type). Same engine as BuilderForm — you write the // markup only. Ordinary forms: RenderForm in FormBlock, no file like this. // // Lighter option first: replaces chosen fields only. 'use client' import { honeypotInputProps, useBuilderForm, type UseBuilderFormOptions } from '@intecion/ipal-kit/client' export function QuoteCardsForm(props: UseBuilderFormOptions) { const f = useBuilderForm(props) if (f.isSuccess) return
{f.resultMessage}
return (
{f.total > 1 &&

{props.texts.stepOf?.replace('{current}', String(f.stepIndex + 1)).replace('{total}', String(f.total))}

} {f.step.fields.map(({ field }) => { if (!field.name) return null if (field.blockType === 'radio') { // options as clickable cards — still a real radio group (keyboard, screen readers) return (
{field.label} {(field.options ?? []).map((o, i) => ( ))} {f.errors[field.name] &&

{f.errors[field.name]}

}
) } return (
{field.blockType === 'textarea' ?