Skip to content

Commit b97294e

Browse files
committed
Update docs
1 parent ca8dcde commit b97294e

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

docs/reference/Field.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ title: Field component
66

77
# `<Field />`
88

9-
A stateful, type-checked form `input` element.
9+
A type-checked form field.
10+
11+
This component renders an `input` by default. This can be changed to `textarea`, `select`, or a custom component by passing it to the `as` prop.
1012

1113
The input transforms its value based on the `type` prop, which **currently supports the following input types**:
1214

docs/reference/FieldError.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ title: FieldError component
88

99
This component renders an error for a specific form field.
1010

11+
It renders a `<></>` (React.Fragment) containing the error by default. You can change what is rendered by passing a tag name (`"p"`) or custom component to the `as` prop.
12+
1113
```tsx
1214
const form = useForm(
1315
{

docs/reference/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
has_children: true
3+
layout: default
34
title: Reference
45
nav_order: 90
56
---

0 commit comments

Comments
 (0)