Skip to content

v0.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 08 Jul 10:22
· 97 commits to main since this release
3f5a5bb

Minor Changes

  • 8c6590a: Remove useField hook and replace with a "controlled" method.

    This allows for more ergonomic usage of custom elements, as you can now wrap a custom field with controlled like so and it will give you value, onChange etc.

    const schema = z.object({ myInput: z.string() });
    
    const { fields } = useForm({ schema });
    
    const { value, onChange } = controlled(fields.myInput);