Skip to content

Commit

Permalink
Merge pull request #13 from stevent-team/changeset-release/main
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
GRA0007 authored Jul 8, 2023
2 parents 21669ca + de50b19 commit 3f5a5bb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
15 changes: 0 additions & 15 deletions .changeset/popular-hats-run.md

This file was deleted.

16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @stevent-team/react-zoom-form

## 0.2.0

### 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.

```ts
const schema = z.object({ myInput: z.string() });

const { fields } = useForm({ schema });

const { value, onChange } = controlled(fields.myInput);
```

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stevent-team/react-zoom-form",
"version": "0.1.0",
"version": "0.2.0",
"description": "React forms powered by Zod",
"keywords": [
"react",
Expand Down

0 comments on commit 3f5a5bb

Please sign in to comment.