Skip to content

Commit dc04a43

Browse files
committed
update page
1 parent d11ceff commit dc04a43

33 files changed

Lines changed: 64 additions & 32 deletions

contentlayer.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const Doc = defineDocumentType(() => ({
1313
fields: {
1414
title: { type: "string", required: true },
1515
description: { type: "string", required: true },
16+
metaDescription: { type: "string", required: false },
1617
sidebar: {
1718
type: "enum",
1819
options: [

src/content/docs/createFormControl.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: createFormControl
3-
description: Create standalone React Hook Form state outside of a React component, useful for global or shared form state management across your app.
3+
description: Standalone form state outside of React components.
4+
metaDescription: Create standalone React Hook Form state outside of a React component, useful for global or shared form state management across your app.
45
sidebar: apiLinks
56
---
67

src/content/docs/formprovider.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: FormProvider
3-
description: Wrap your form tree with FormProvider to share useForm methods across deeply nested components without passing props manually.
3+
description: Share form context across deeply nested components.
4+
metaDescription: Wrap your form tree with FormProvider to share useForm methods across deeply nested components without passing props manually.
45
sidebar: apiLinks
56
---
67

src/content/docs/usecontroller.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: useController
3-
description: React hook for building reusable controlled inputs with full access to field value, validation state, and form state from React Hook Form.
3+
description: Build reusable controlled inputs with full form state access.
4+
metaDescription: React hook for building reusable controlled inputs with full access to field value, validation state, and form state from React Hook Form.
45
sidebar: apiLinks
56
---
67

src/content/docs/usecontroller/controller.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Controller
3-
description: Wrapper component for integrating controlled external inputs like MUI, Chakra UI, and React-Select with React Hook Form validation.
3+
description: Integrate controlled external UI inputs with React Hook Form.
4+
metaDescription: Wrapper component for integrating controlled external inputs like MUI, Chakra UI, and React-Select with React Hook Form validation.
45
sidebar: apiLinks
56
---
67

src/content/docs/usefieldarray.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: useFieldArray
3-
description: React hook for dynamic field arrays. Append, prepend, insert, remove, swap, move, update, and replace fields with optimized performance.
3+
description: Manage dynamic field arrays with optimized performance.
4+
metaDescription: React hook for dynamic field arrays. Append, prepend, insert, remove, swap, move, update, and replace fields with optimized performance.
45
sidebar: apiLinks
56
---
67

src/content/docs/useform.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: useForm
3-
description: The primary React Hook Form hook. Initialize your form with validation rules, default values, and submission handling in a single call.
3+
description: React Hook Form's primary hook for form initialization.
4+
metaDescription: The primary React Hook Form hook. Initialize your form with validation rules, default values, and submission handling in a single call.
45
sidebar: apiLinks
56
---
67

src/content/docs/useform/clearerrors.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: clearErrors
3-
description: Manually clear validation errors for one field, an array of fields, or the entire React Hook Form without triggering re-validation.
3+
description: Manually clear validation errors on fields.
4+
metaDescription: Manually clear validation errors for one field, an array of fields, or the entire React Hook Form without triggering re-validation.
45
sidebar: apiLinks
56
---
67

src/content/docs/useform/control.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: control
3-
description: The control object returned by useForm, required to register controlled inputs via the Controller component and useController hook.
3+
description: The control object for registering controlled inputs.
4+
metaDescription: The control object returned by useForm, required to register controlled inputs via the Controller component and useController hook.
45
sidebar: apiLinks
56
---
67

src/content/docs/useform/form.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Form
3-
description: React Hook Form's Form component handles submission to a URL or callback, with built-in loading, error, and success state management.
3+
description: Form submission component with built-in state management.
4+
metaDescription: React Hook Form's Form component handles submission to a URL or callback, with built-in loading, error, and success state management.
45
sidebar: apiLinks
56
---
67

0 commit comments

Comments
 (0)