askeroo
Version:
A modern CLI prompt library with flow control, history navigation, and conditional prompts
33 lines • 882 B
TypeScript
interface MultiFieldOption {
value: string;
label: string;
color?: string;
hint?: string;
}
/**
* User-provided options for the multi-select plugin
*/
export interface MultiOptions {
label?: string;
message?: string;
shortLabel?: string;
options?: string[] | MultiFieldOption[];
initialValue?: string[];
noneOption?: {
label: string;
};
showNumbers?: boolean;
allowLoop?: boolean;
searchable?: boolean | "filter";
hintPosition?: "bottom" | "inline" | "side" | "inline-fixed";
maxVisible?: number;
searchQuery?: string;
onSubmit?: (value: string[]) => string[] | void;
}
export declare const MultiField: ({ node, options: options, events, }: {
node: any;
options: MultiOptions;
events: any;
}) => import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=MultiField.d.ts.map