@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) • 844 B
TypeScript
import { ParamValues, Parameter } from "../../client/types";
import { FieldOption, RunbookOptions, TaskOptions } from "./Form.types";
type ParameterInputProps = {
param: Parameter;
paramValues: ParamValues;
idPrefix: string;
/** A callback that is called to change the value of the parameter. */
onChange: (value: unknown) => void;
/** The current value of the parameter. */
value?: unknown;
opt?: FieldOption;
};
/** ParameterInput represents the UI component for a single parameter. */
export declare const ParameterInput: ({ param, idPrefix, opt, paramValues, onChange, value, }: ParameterInputProps) => import("react/jsx-runtime").JSX.Element | null;
export declare const validateParameterOptions: <TOutput>(params: Parameter[], opts: RunbookOptions | TaskOptions<TOutput>) => string | undefined;
export {};