Skip to content

provide a way to render component but globally #21

Description

@mathieuancelin

we should be able to do something like

<Form ... renderInputs={{
  "text": ({rawValues, value, onChange, error}) => <input type="text" className="is-invalid" value={value} onChange={e => onChange(e.target.value)} />,
  "date": ({rawValues, value, onChange, error}) => <input type="date" className="is-invalid" value={value} onChange={e => onChange(e.target.value)} />
}} />

and be able to not redefine every component kind without breaking everything

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions