tell me the correct type for a control parameter?

I think the documentation is pretty clear that you have to use your form values as a type.

type FormValues = {
  '': string

type FormInputProps = {
  control: Control<FormValues>
  // ...

Though I hope I don’t have to tell you that if this “” string is replaceable, your form processing logic will find itself in trouble. The name attribute is not supposed to be exposed to the end user, so there is absolutely no need to localise it.

Anyway, if you need more help than that, please provide a minimal reproducible example, preferably in There is a lot of code in your question, but we can’t actually run any of it.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top