Skip to content

Add an option to choose a different form control besides input #2

@pffigueiredo

Description

@pffigueiredo

Problem
When getting the form controls, there should be a way to define if it's an input, textarea or select.
Because right now, the returned JSX is always an input.

const formControls = getFormControls<Person, 'firstName' | 'age' >([
    {
      type: 'text',
      name: 'firstName',
    },
    { type: 'number', name: 'age' },
  ]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions