Skip to content

Declarative form validation #20

@chriswxyz

Description

@chriswxyz

Right now the form validation is pretty open ended, going off of the onSubmit func throwing errors or not. It might be helpful to have some simple annotations to provide inline validations. This could end up looking like:

<TextField name='blah' required={true}/>

or

<DateField name='dob' isValid={x => x < today}/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions