Hi all,
I've been working with Kendo Form for a while and I'm now trying to add some custom behavior or styling to all my form fields. For example, I might want to consistently wrap them with extra logic, validation hints, or a custom layout.
Here’s a simplified case using a `Checkbox`:
<Field component={Checkbox} name="acceptTerms" />
To achieve the desired behavior, I’ve tried creating a `MyCustomCheckbox` component (see here). That works fine — but I don’t want to have to create `MyCustomInput`, `MyCustomDropdown`, `MyCustomDatePicker`, etc. for every component I use.
Is there a way to apply the same wrapper or logic at a more general level, so that I can just write:
<Field component={Input} name="email" />
<Field component={Checkbox} name="acceptTerms" />
…and have both get wrapped or enhanced in the same way — without duplicating the logic in multiple custom components?
Any tips or patterns would be greatly appreciated!
Thanks,
Grant