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) 586 B
import { InputState } from "../../../state/components/input/reducer"; import { StateSetters } from "../../../state/components/input/useStateSetters"; import { TextInputTValue } from "./reducer"; import { BaseState, DefaultState } from "../BaseState"; export type TextInputState = { focus: () => void; } & BaseState & InputState<TextInputTValue> & StateSetters<TextInputTValue>; export type CodeInputState = TextInputState; export type InitialTextInputState = { value?: string; disabled?: boolean; }; export declare const DefaultTextInputState: DefaultState<TextInputState>;