@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.
17 lines (16 loc) • 672 B
TypeScript
import * as React from "react";
/**
* Supported form input types
*/
export type InputType = "number-input" | "text-input" | "file-input" | "checkbox" | "switch" | "slider" | "select" | "date-picker" | "radio-group" | "multi-select" | "multi-input";
type FormTypeByID = Record<string, InputType>;
export type FormContextType = {
formTypeByID: FormTypeByID;
addFormInput: (id: string, type: InputType) => void;
removeFormInput: (id: string) => void;
};
export declare const FormContext: React.Context<FormContextType>;
export declare const FormProvider: ({ children }: {
children: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element;
export {};