Skip to content

Commit

Permalink
docs: Correct "field." to "fields." and "validate" to "validates" (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkcookie authored Feb 27, 2024
1 parent d124980 commit 084363d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions docs/api/react/getInputProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ function Example() {
defaultValue={fields.task.initialValue}
aria-invalid={!fields.task.valid || undefined}
aria-describedby={!fields.task.valid ? fields.task.errorId : undefined}
required={field.task.required}
minLength={field.task.minLength}
maxLength={field.task.maxLength}
min={field.task.min}
max={field.task.max}
step={field.task.step}
pattern={field.task.pattern}
multiple={field.task.multiple}
required={fields.task.required}
minLength={fields.task.minLength}
maxLength={fields.task.maxLength}
min={fields.task.min}
max={fields.task.max}
step={fields.task.step}
pattern={fields.task.pattern}
multiple={fields.task.multiple}
/>
{/* checkbox */}
<input
Expand All @@ -82,7 +82,7 @@ function Example() {
aria-describedby={
!fields.completed.valid ? fields.completed.errorId : undefined
}
required={field.completed.required}
required={fields.completed.required}
/>
</form>
);
Expand Down
4 changes: 2 additions & 2 deletions docs/api/react/getSelectProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ function Example() {
aria-describedby={
!fields.category.valid ? fields.category.errorId : undefined
}
required={field.category.required}
multiple={field.category.multiple}
required={fields.category.required}
multiple={fields.category.multiple}
/>
</form>
);
Expand Down
6 changes: 3 additions & 3 deletions docs/api/react/getTextareaProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ function Example() {
aria-describedby={
!fields.content.valid ? fields.content.errorId : undefined
}
required={field.content.required}
minLength={field.content.minLength}
maxLength={field.content.maxLength}
required={fields.content.required}
minLength={fields.content.minLength}
maxLength={fields.content.maxLength}
/>
</form>
);
Expand Down
2 changes: 1 addition & 1 deletion docs/api/react/useInputControl.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Example() {

return (
<Select
name={field.color.name}
name={fields.color.name}
value={color.value}
onChange={color.change}
onFocus={color.focus}
Expand Down
2 changes: 1 addition & 1 deletion docs/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function #() {

Conform supports async validation in a slightly different way. Instead of sending a request to another endpoint, we will simply fallback to server validation when needed.

Here is an example which validate if the email is unique.
Here is an example which validates if the email is unique.

```tsx
import { refine } from '@conform-to/zod';
Expand Down

0 comments on commit 084363d

Please # to comment.