Use Controllable State Options reference
Options for useControllableState: the controlled value, the initial value while uncontrolled, and the change callback.
Used by
Import
import type { UseControllableStateOptions } from '@kingtech/react-pdf-viewer';Properties
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
value | T | — | Yes | The controlled value; undefined = uncontrolled. |
defaultValue | T | () => T | — | Yes | Initial value while uncontrolled. |
onChange | (value: T) => void | — | No | Called with every change, controlled or not. |
name | string | — | No | Prop name used in development warnings. |
Source
packages/react-pdf-viewer/src/hooks/useControllableState.ts
Generated from content/react-pdf-viewer/reference/use-controllable-state-options.schema.json. Do not edit by hand.