Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
16 lines
541 B
Plaintext
16 lines
541 B
Plaintext
import React from 'react';
|
|
import type { FieldType, Options } from './types.js';
|
|
export type { FieldType, Options };
|
|
/**
|
|
* Context to allow providing useField value for fields directly, if managed outside the Form
|
|
*
|
|
* @experimental
|
|
*/
|
|
export declare const FieldContext: React.Context<FieldType<unknown>>;
|
|
/**
|
|
* Get and set the value of a form field.
|
|
*
|
|
* @see https://payloadcms.com/docs/admin/react-hooks#usefield
|
|
*/
|
|
export declare const useField: <TValue>(options?: Options) => FieldType<TValue>;
|
|
//# sourceMappingURL=index.d.ts.map |