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) 433 B
import { BaseState, DefaultState } from "../BaseState"; export type InputValues = Record<string, any>; export type FormState = { /** * values is a simple, user-friendly map of form's input ids to their values. */ values?: InputValues; /** * Resets all inputs in the form to their default values. */ reset: () => void; } & BaseState; export declare const DefaultFormState: DefaultState<FormState>;