Skip to content

v1.4.0

Choose a tag to compare

@05bmckay 05bmckay released this 06 Apr 20:42
· 70 commits to main since this release

Features

  • Per-group rendering options — new groups prop on FormBuilder lets you customize each field group by name: override the displayed label, hide the header (showLabel), hide the divider (showDivider), or provide a fully custom renderHeader.
  • slot field type — clearer alias of display for injecting JSX between fields. Combine with visible for conditional inline content (warnings, hints, banners) without polluting form values or validation.
  • gap prop documented in the FormBuilder type definitions and README with the full HubSpot spacing token mapping.

Example

<FormBuilder
  fields={fields}
  groups={{
    contact: { label: "Contact Info" },
    company: { label: "Company Info", showDivider: false },
  }}
/>
{
  name: "_addressWarning",
  type: "slot",
  visible: (vals) => isAddressIncomplete(vals),
  render: () => <Tag variant="warning">Incomplete address</Tag>,
}