@canard/schema-form
Version:
React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components
10 lines (9 loc) • 443 B
TypeScript
import { type RefObject } from 'react';
import { type SchemaNode } from '../../../../core';
/**
* Hook that controls input elements connected to schema nodes.
* Manages focus or selection state based on events.
* @param node - Node to connect with input elements
* @returns [version, ref]
*/
export declare const useSchemaNodeInputControl: <Node extends SchemaNode>(node: Node | null) => readonly [number, RefObject<HTMLElement | null>];