askeroo
Version:
A modern CLI prompt library with flow control, history navigation, and conditional prompts
23 lines • 715 B
TypeScript
export interface RadioOption {
value: string;
label: string;
color?: string;
hint?: string;
}
/**
* User-provided options for the radio input plugin
*/
export interface RadioOptions {
label: string;
shortLabel?: string;
options: RadioOption[];
showNumbers?: boolean;
allowLoop?: boolean;
searchable?: boolean | "filter";
hintPosition?: "bottom" | "inline" | "side" | "inline-fixed";
maxVisible?: number;
initialValue?: string;
onSubmit?: (value: string) => string | void;
}
export declare const radio: (opts?: import("../../types/index.js").PluginOptionsWithBuiltins<RadioOptions, string> | undefined) => Promise<string>;
//# sourceMappingURL=index.d.ts.map