UNPKG

@airplane/views

Version:

A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.

14 lines (13 loc) 526 B
/// <reference types="react" /> import { InitialFileInputState, FileInputState } from "./state"; export type FileInputHookOptions = { initialState: InitialFileInputState; }; /** * useFileInputState is a hook that creates and manages an FileInput's state on the * Airplane context */ export declare const useFileInputState: (id: string, options: FileInputHookOptions) => { state: FileInputState; dispatch: import("react").Dispatch<import("../input/reducer").InputAction<import("./reducer").FileInputTValue>>; };