UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

25 lines 814 B
import * as React from 'react'; import { PaginationModel } from '../types'; export interface UseGoToFormConfig { model: PaginationModel; onSubmit?: (event: React.FormEvent<HTMLFormElement>) => void; } export declare const GoToContext: React.Context<{ formProps: { onSubmit: (event: React.FormEvent<HTMLFormElement>) => void; }; inputProps: { value: number; onChange: (event: React.ChangeEvent<HTMLInputElement>) => void; }; }>; export declare const useGoToForm: ({ onSubmit, model }?: UseGoToFormConfig) => { formProps: { onSubmit: (event: React.FormEvent<HTMLFormElement>) => void; }; inputProps: { value: number; onChange: (event: React.ChangeEvent<HTMLInputElement>) => void; }; }; //# sourceMappingURL=useGoToForm.d.ts.map