@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.
16 lines (15 loc) • 653 B
TypeScript
import { InputState } from "../../../state/components/input/reducer";
import { StateSetters } from "../../../state/components/input/useStateSetters";
import { BooleanTValue } from "./reducer";
import { BaseState, DefaultState } from "../BaseState";
export type BooleanState = {
checked: boolean;
setChecked: (checked: boolean) => void;
} & BaseState & InputState<BooleanTValue> & StateSetters<BooleanTValue>;
export type CheckboxState = BooleanState;
export type SwitchState = BooleanState;
export type InitialBooleanState = {
value?: boolean;
disabled?: boolean;
};
export declare const DefaultBooleanState: DefaultState<BooleanState>;