Skip to content

Commit 87c9974

Browse files
committed
fix: Run formatter
1 parent 37f5981 commit 87c9974

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/content/docs/useformstate/formstatesubscribe.mdx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ A React Hook Form component that provides the same functionality as `uesFormStat
1212

1313
---
1414

15-
| Name | Type | Description |
16-
| ---------- | ---------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
17-
| `control` | <TypeText>Object</TypeText> | [`control`](/docs/useform/control) object provided by `useForm`. It's optional if you are using `FormProvider`. |
18-
| `name` | <TypeText>string \| string[] </TypeText> | Provide a single input name, an array of them, or subscribe to all inputs' formState update. |
19-
| `disabled` | <TypeText>boolean = false</TypeText> | Option to disable the subscription. |
20-
| `exact` | <TypeText>boolean = false</TypeText> | This prop will enable an exact match for input name subscriptions. |
21-
| `render` | <TypeText>Function</TypeText> | Subscribes to form state of specified form field(s) and re-renders its child function whenever the form state changes. This allows you to declaratively consume form state in JSX without manually wiring up state. |
15+
| Name | Type | Description |
16+
| ---------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
17+
| `control` | <TypeText>Object</TypeText> | [`control`](/docs/useform/control) object provided by `useForm`. It's optional if you are using `FormProvider`. |
18+
| `name` | <TypeText>string \| string[] </TypeText> | Provide a single input name, an array of them, or subscribe to all inputs' formState update. |
19+
| `disabled` | <TypeText>boolean = false</TypeText> | Option to disable the subscription. |
20+
| `exact` | <TypeText>boolean = false</TypeText> | This prop will enable an exact match for input name subscriptions. |
21+
| `render` | <TypeText>Function</TypeText> | Subscribes to form state of specified form field(s) and re-renders its child function whenever the form state changes. This allows you to declaratively consume form state in JSX without manually wiring up state. |
2222

2323
**Examples:**
2424

@@ -48,3 +48,5 @@ const App = () => {
4848
```
4949

5050
```
51+
52+
```

0 commit comments

Comments
 (0)