# FormPageState

**Category:** Common/State

## API

### Overview

`FormPageState` manages form state for page components (`EntityPage`, `SettingsPage`). It wraps a `react-hook-form` `UseFormReturn` instance and adds initialization/submission task tracking and optional widgets form state. You typically do not create this directly — it is managed internally by [`EntityPageState`](./?path=/story/base-components-pages-entity-page-state--entitypagestate) or [`SettingsPageState`](./?path=/story/base-components-pages-settings-page-state--settingspagestate).

### Props

| Prop | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| `validate` | `() => { isValid: boolean; data: Record<string, any>; }` | Yes | - | Get the form data and if it's valid |
| `isDirty` | `boolean` | Yes | - | Indicates if the form has been modified |

