@ui-schema/react
Version:
Schema-driven UI generator for React using JSON Schema. Build powerful form and interface generators with headless components and hooks.
9 lines (8 loc) • 538 B
TypeScript
import type { PropsWithChildren, ReactElement } from 'react';
import type { onChangeHandler } from '@ui-schema/react/UIStore';
import type { UIStoreActions } from '@ui-schema/react/UIStoreActions';
export interface UIStoreActionsContext<A = UIStoreActions> {
onChange: onChangeHandler<A>;
}
export declare function UIStoreActionsProvider<A = UIStoreActions>({ children, onChange, }: PropsWithChildren<UIStoreActionsContext<A>>): ReactElement;
export declare function useUIStoreActions<A = UIStoreActions>(): UIStoreActionsContext<A>;